Created
January 31, 2019 16:35
-
-
Save simenge/0beb472a9ddf29f7aa2695a7320ab373 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
match { | |
case sexpr | |
when [sym("def"), params.as(Array(LispSymbol), rest(body.as(Array(LispObject))))] | |
# params is now bound to an Array(LispSymbol) and body to an array of LispObject | |
# consisting of sexpr[2..-1] | |
end | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment