Skip to content

Instantly share code, notes, and snippets.

@churib
Created November 15, 2012 19:56
Show Gist options
  • Save churib/4080838 to your computer and use it in GitHub Desktop.
Save churib/4080838 to your computer and use it in GitHub Desktop.
recursive lambda
(defmacro lambda* (fname args &rest body)
`(lambda ,args
(labels ((,fname ,args ,@body))
(fname ,@args))))
(defmacro alambda (args &body body)
`(labels ((self ,args ,@body))
#'self))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment