Skip to content

Instantly share code, notes, and snippets.

@fogus
Created August 16, 2010 14:08
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 fogus/526993 to your computer and use it in GitHub Desktop.
Save fogus/526993 to your computer and use it in GitHub Desktop.
(let [example (fn [a & {:keys [b c]}] [a b c])]
[(example 1)
(example 1 :b 42)
(example 1 :b 42 :c 108)])
;=> [[1 nil nil] [1 42 nil] [1 42 108]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment