Skip to content

Instantly share code, notes, and snippets.

@werbitt werbitt/gist:3729077
Created Sep 15, 2012

Embed
What would you like to do?
Clojure Arity Issue
user=> (defn f [& ks]
#_=> (let [ms [{:a "abc" :b "123"} {:a "def" :b "456"}]]
#_=> (if ks
#_=> (map (fn [x] (select-keys x ks)) ms)
#_=> (ms))))
#'user/f
user=> (f :b)
({:b "123"} {:b "456"})
user=> (f)
ArityException Wrong number of args (0) passed to: PersistentVector clojure.lang.AFn.throwArity (AFn.java:437)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.