Skip to content

Instantly share code, notes, and snippets.

@simenge
Created January 31, 2019 16:35
Show Gist options
  • Save simenge/0beb472a9ddf29f7aa2695a7320ab373 to your computer and use it in GitHub Desktop.
Save simenge/0beb472a9ddf29f7aa2695a7320ab373 to your computer and use it in GitHub Desktop.
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