Skip to content

Instantly share code, notes, and snippets.

@ruliana
Last active January 12, 2018 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruliana/5aee7f979e36fabea8f99d9b6fdafd61 to your computer and use it in GitHub Desktop.
Save ruliana/5aee7f979e36fabea8f99d9b6fdafd61 to your computer and use it in GitHub Desktop.
Simple pattern extension in Racket (focus on the macro)
(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