Skip to content

Instantly share code, notes, and snippets.

@mathias
Created November 30, 2014 20:30
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 mathias/9f858a4fc5aec0e24026 to your computer and use it in GitHub Desktop.
Save mathias/9f858a4fc5aec0e24026 to your computer and use it in GitHub Desktop.
lispy> (def {add-mul} (\ {x y} {+ x (* x y)}))
()
lispy> add-mul 10 20
210
lispy> add-mul 10
(\ {y} {+ x (* x y)})
lispy> (def {add-mul-ten} (add-mul 10))
()
lispy> add-mul-ten 50
510
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment