Skip to content

Instantly share code, notes, and snippets.

@j1n3l0
Created December 15, 2013 16: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 j1n3l0/7974994 to your computer and use it in GitHub Desktop.
Save j1n3l0/7974994 to your computer and use it in GitHub Desktop.
user> (->> [] (reduce (fn [a b] {:a a :b b})))
ArityException Wrong number of args (0) passed to: user$eval3315$fn clojure.lang.AFn.throwArity (AFn.java:437)
user> (->> ["a"] (reduce (fn [a b] {:a a :b b})))
"a"
user> (->> ["a" "b"] (reduce (fn [a b] {:a a :b b})))
{:a "a", :b "b"}
user>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment