Create a gist now

Instantly share code, notes, and snippets.

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