Created
January 29, 2024 06:12
-
-
Save garlic0x1/56ab4b1b0aedab2829ed49fe7eff5637 to your computer and use it in GitHub Desktop.
CL shorthand list
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
(set-macro-character | |
#\~ | |
(lambda (stream char) | |
(declare (ignore char)) | |
`(list ,@(read stream t)))) | |
;; USAGE: | |
(macroexpand (quote ~(1 2 3))) | |
;; => (LIST 1 2 3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment