(map (juxt identity (partial * 2)) (range 5))
([0 0] [1 2] [2 4] [3 6] [4 8])
(map (juxt seq seq? sequential?) ['(1) [1] []])
([(1) true true] [(1) false true] [nil false true])
((juxt #(apply + %&) +) 2 2)
[4 4]
(defn play [elem & forms] ((juxt forms) elem))
#'user/play
((comp second (juxt list +)) 1 2 3)
6((comp (juxt identity supers) class) (first {:a 1}))
[clojure.lang.MapEntry #{clojure.lang.IMapEntry java.lang.Iterable clojure.lang.Reversible clojure.lang.Sequential clojure.lang.IPersistentStack clojure.lang.AFn java.util.List java.lang.Runnable clojure.lang.Counted java.io.Serializable java.util.Map$Entry clojure.lang.IHashEq java.lang.Comparable clojure.lang.ILookup clojure.lang.IPersistentCollection clojure.lang.IPersistentVector clojure.lang....
((juxt (partial + 1) (partial + 2)) 3)
[4 5]
(first (filter identity ((apply juxt [true? false? coll?]) [])))
true((juxt sequential? (comp seq? seq)) #{1 2})
[false true]
(map (juxt + -) [1 2] [3 4])
([4 -2] [6 -2])
((juxt = identical?) "a" (apply str (rest "ba")))
[true false]
((juxt apply reduce) (partial list '+) (range 4))
[(+ 0 1 2 3) (+ (+ (+ 0 1) 2) 3)]
(filter (juxt identity println) [0 1 2 3])
(0 1 2 3)
"0\n1\n2\n3\n"(do (declare x) ((juxt :namespace :name) (meta #'x)))
[nil x]
(apply hash-map (map (juxt identity -) (range 4)))
{[0 0] [1 -1], [2 -2] [3 -3]}
((juxt unchecked-divide-int mod quot rem /) 20 -6)
[-3 -4 -3 2 -10/3]
(clojure.walk/postwalk (juxt identity meta) (with-meta [1] {:m 1}))
[[[1 nil]] {:m 1}]
(let [{foo :foo, :or {foo (prn "this should not print")}} {:foo "bar"}] foo)
"bar""\"this should not print\"\n"((juxt min max) 10 1 9 100 2)
[1 100]
(apply identical? ((juxt identity (partial format "%s")) "word"))
false(-> {:latitude 1, :longitude 2} ((juxt :latitude :longitude)))
[1 2]
(vec (mapcat (juxt identity str) '[par1 par2]))
[par1 "par1" par2 "par2"]
((juxt apply reduce) (partial list '+) (range 5))
[(+ 0 1 2 3 4) (+ (+ (+ (+ 0 1) 2) 3) 4)]
((juxt vector? nil?) (re-matches #"a(b)c" "abc"))
[true false]
(.length (str (macroexpand '((juxt namespace symbol) `'`'`'`a))))
12358(apply = ((juxt first second) '(foo foo)))
true(sequence (mapcat (juxt inc identity)) [1 2 3])
(2 1 3 2 4 3)
(defn two-of-each [coll] (mapcat (juxt identity identity) coll))
#'user/two-of-each
((juxt (partial + 3) (partial + 4)) 5)
[8 9]
(map (juxt key val) {1 2, 3 4})
([1 2] [3 4])
(update-in {:foo {:bar {:baz {:bang 12, :booze 13}}}} [:foo :bar :baz] dissoc :booze)
{:foo {:bar {:baz {:bang 12}}}}
(let* [nested-map {:foo {:bar 12}} func (fn [{{bar :bar} :foo}] bar)] (func nested-map))
12(let [{:keys [foo bar], :or {bar 0}} {:foo 20}] {:foo foo, :bar bar})
{:bar 0, :foo 20}
((comp first (juxt seq)) {1 2, 3 4})
([1 2] [3 4])
((juxt count (partial apply +)) [1 2 3])
[3 6]
(do (declare x) ((juxt :ns :name) (meta #'x)))
[#object [sci.impl.vars.SciNamespace 0x37a47b18 "user"] x]
((juxt get dissoc) {:a 1, :b 2} :a)
[1 {:b 2}]
((juxt get nth) (list 1 2 3) 1)
[nil 2]
((comp second (juxt println +)) 1 2 3)
6"1 2 3\n"((juxt :a :b) (zipmap [:a :b] [1 2]))
[1 2]
(apply identical? ((juxt first second) '(foo foo)))
false((juxt list vector hash-set str name identity) :what)
[(:what) [:what] #{:what} ":what" "what" :what]
(into {} (map (juxt identity inc) [1 2 3]))
{1 2, 2 3, 3 4}
((juxt inc dec #(+ 10 %)) 10)
[11 9 20]
(mapcat (juxt identity identity) [1 2 3 4])
(1 1 2 2 3 3 4 4)
(map (juxt true? false? boolean) [false true nil])
([false true false] [true false true] [false false false])
(into {} (map (juxt hash identity) ["a" "b" "c"]))
{516420758 "b", 1219591486 "c", 1455541201 "a"}
((juxt unchecked-divide-int mod quot rem /) -20 6)
[-3 4 -3 -2 -10/3]
(map (juxt :name :open) [{:name "foo", :open "bar"}])
(["foo" "bar"])
((juxt class (comp class rest)) (iterate inc 1))
[clojure.lang.Iterate clojure.lang.Iterate]

