Last active
March 9, 2020 08:06
-
-
Save shirok/be818e9be5a4a791d3855be3f28061f8 to your computer and use it in GitHub Desktop.
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
gosh> (let ((cs '())) | |
(dolist (x '(1 2 3 4 5)) | |
(push! cs (lambda () x))) | |
(map (lambda (c) (c)) cs)) | |
(5 4 3 2 1) | |
gosh> (let ((cs '())) | |
(do ((xs '(1 2 3 4 5) (cdr xs))) | |
((null? xs)) | |
(push! cs (lambda () (car xs)))) | |
(map (lambda (c) (c)) cs)) | |
(5 4 3 2 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment