Skip to content

Commit

Permalink
Add SRFI 101: Purely Functional Random-Access Pairs and Lists
Browse files Browse the repository at this point in the history
This one is tricky, since it requires the redefinition of
very fundamental things like CAR and QUOTE.

- Everything is defined inside the module with a prefix
  "srfi101:", and exported with renaming
- The ideal way to use this SRFI is to prefix symbols when
  importing, otherwise one'd lose the standard car, list, quote
  etc.
- Its tests are in a separate file, and loaded as a last thing
  in do-test.stk

Issues:

- When not renamed, quote enters a loop
- Tests run fine and pass when called manually, but when inside the
  test system, they raise some kind of exception
  • Loading branch information
jpellegrini committed Jul 1, 2022
1 parent 8f28b63 commit 9bc29ff
Show file tree
Hide file tree
Showing 8 changed files with 1,557 additions and 7 deletions.
1 change: 1 addition & 0 deletions SUPPORTED-SRFIS
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ implemented in latest version is available at https://stklos.net/srfi.html):
- SRFI-96: SLIB Prerequisites
- SRFI-98: Interface to access environment variables
- SRFI-100: define-lambda-object
- SRFI-101: Purely Functional Random-Access Pairs and Lists
- SRFI-111: Boxes
- SRFI-112: Environment Inquiry
- SRFI-113: Sets and Bags
Expand Down
Loading

0 comments on commit 9bc29ff

Please sign in to comment.