Skip to content

Instantly share code, notes, and snippets.

@r-moeritz
Created May 21, 2012 08:35
Show Gist options
  • Save r-moeritz/2761193 to your computer and use it in GitHub Desktop.
Save r-moeritz/2761193 to your computer and use it in GitHub Desktop.
nif macroexpand
(macroexpand
'(nif (random 100) 'positive 'zero 'negative))
;; Expands to:
(LET ((#:RESULT3117 (RANDOM 100))) (COND ((PLUSP #:RESULT3117) 'LET-OVER-LAMBDA.G!.EXAMPLES::POSITIVE) ((ZEROP #:RESULT3117) 'LET-OVER-LAMBDA.G!.EXAMPLES::ZERO) (T 'LET-OVER-LAMBDA.G!.EXAMPLES::NEGATIVE)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment