clojure.core/juxt¶
Takes a set of functions and returns a fn that is the juxtaposition of those fns. The returned fn takes a variable number of args, and returns a vector containing the result of applying each fn to the args (left-to-right). ((juxt a b c) x) => [(a x) (b x) (c x)]
Examples¶
Note by Nevena¶
I kinda love this fn =)
Note by lispro06¶
"reduce1" -> "reduce"
core sources from 33 line to 37 line
See also¶
- clojure.core/partial (10)
- clojure.core/comp (15)
- clojure.core/every-pred (2)
Content from the matching ClojureDocs page, with authors credited on each contribution.