-
-
Save cordawyn/8c472604b6fa043ebb1e to your computer and use it in GitHub Desktop.
TAIL?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;; Collecting Lists & Streams | |
(define-syntax collect-list-reverse | |
(syntax-rules (INITIAL) | |
((COLLECT-LIST-REVERSE (INITIAL tail-expression) clause0 clause1+ ...) | |
(ITERATE ((TAIL tail-expression)) CONS clause0 clause1+ ...)) | |
((COLLECT-LIST-REVERSE clause0 clause1+ ...) | |
(COLLECT-LIST-REVERSE (INITIAL '()) clause0 clause1+ ...)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment