Created
December 1, 2018 22:02
-
-
Save edw/8b212a2c4d00d3c45c3184f09ee33981 to your computer and use it in GitHub Desktop.
Poking Scheme implementations' rest-arg handling bits
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
(define (evil . args) | |
(set-cdr! args '()) | |
args) | |
(let ((xs '(0 1 2 3))) | |
(display (apply evil xs)) | |
(newline) | |
(display xs) | |
(newline)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment