Skip to content

Instantly share code, notes, and snippets.

@aphyr
Created April 8, 2014 19:31
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 aphyr/10176946 to your computer and use it in GitHub Desktop.
Save aphyr/10176946 to your computer and use it in GitHub Desktop.
user=> (doc when)
-------------------------
clojure.core/when
([test & body])
Macro
Evaluates test. If logical true, evaluates body in an implicit do.
nil
user=> (doc if)
-------------------------
if
(if test then else?)
Special Form
Evaluates test. If not the singular values nil or false,
evaluates and yields then, otherwise, evaluates and yields else. If
else is not supplied it defaults to nil.
Please see http://clojure.org/special_forms#if
nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment