Last active
January 12, 2018 18:34
-
-
Save ruliana/5aee7f979e36fabea8f99d9b6fdafd61 to your computer and use it in GitHub Desktop.
Simple pattern extension in Racket (focus on the macro)
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-match-expander inner | |
(syntax-rules () | |
[(inner x) (list x (... ...))])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment