Skip to content

Instantly share code, notes, and snippets.

@ethagnawl
Created December 21, 2013 00:02
Show Gist options
  • Save ethagnawl/8063578 to your computer and use it in GitHub Desktop.
Save ethagnawl/8063578 to your computer and use it in GitHub Desktop.
Clojure Default Parameters
(defn foo
([] (foo "bar"))
([bar] (prn bar)))
(foo) ;; "bar"
(foo "baz") ;; "baz"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment