(symbol (clojure.string/join "/" ((juxt :ns :name) (-> 'println resolve meta))))
clojure.core/println((comp (partial into {}) (partial map (juxt count identity))) ["yes" "no"])
{2 "no", 3 "yes"}
(map (juxt sequential? map? set? list? vector? seq?) [() [] #{} {} (lazy-seq)])
([true false false true false true] [true false false false true false] [false false true false false false] [false true false false false false] [true false false false false true])
((juxt #(/ % 60) #(rem % 60)) 1019)
[1019/60 59]
(first ((apply juxt (conj (vec (repeat 500 inc)) println)) 4))
5"4\n"(->> [1 2] ((juxt (comp dec first) (comp inc second))))
[0 3]
(clojure.string/join \. ((juxt :a :c) {:a "apple", :b "banana", :c "cherry"}))
"apple.cherry"(into {} (map (comp (juxt :name :doc) meta)) (vals (ns-publics (the-ns 'clojure.core))))
{+' "Returns the sum of nums. (+') returns 0. Supports arbitrary precision.\n See also: +", decimal? "Returns true if n is a BigDecimal", sort-by "Returns a sorted sequence of the items in coll, where the sort\n order is determined by comparing (keyfn item). If no comparator is\n supplied, uses compare. comparator must implement\n java.util.Comparator. Guaranteed to be stable: equal element...
(into {} (map (juxt identity {:a 1, :b 2}) [:a :b :c]))
{:a 1, :b 2, :c nil}
(map (juxt first second) `[[a 1] [b 2] [c 3]])
([user/a 1] [user/b 2] [user/c 3])
((juxt identity meta) (tree-seq seq? identity '(with-meta [1] {:m 1})))
[((with-meta [1] {:m 1}) with-meta [1] {:m 1}) nil]
(let [ks '(a b)] (into {} (map (juxt keyword identity) ks)))
{:a a, :b b}
(map #((juxt inc dec) %) [1 2 3 4 5])
([2 0] [3 1] [4 2] [5 3] [6 4])
((juxt (partial apply max) (partial apply +)) [1 2 4 3])
[4 10]
((juxt (comp first filter) some) pos? [0 -1 2 1 0])
[2 true]
(condp instance? 10 String :string Integer :integer :foo)
:foo(conj (sorted-map :quux 3) {:foo 1, :bar 2})
{:bar 2, :foo 1, :quux 3}
(filter identity (map #(:foo %) [{:bar "bar"}]))
()(map (fn [a] {:foo a}) [1 2 3])
({:foo 1} {:foo 2} {:foo 3})
(get (group-by val {:foo "foo", :bar "bar"}) "foo")
[[:foo "foo"]]
(type ^{:type :foo} {:a 1, :b 2})
:foo(update-in {} [:foo] #(if % (inc %) 1))
{:foo 1}
(let [[name hp] ["Sgeo" 100 :foo]] [hp name])
[100 "Sgeo"]
(map (partial apply list) {:foo 1, :bar 2})
((:foo 1) (:bar 2))
(str "(" (name (first [:foo])) ")")
"(foo)"(def x [{:a {:x :foo}} {:a {:x :bar}}])
#'user/x
(lazy-seq (if (zero? (rand-int 2)) nil (list :foo)))
()(let [overrides {:foo :overridden}] (get overrides :bar :default))
:default(def myorder {:baz 0, :bar 1, :foo 2})
#'user/myorder
(let [x {:foo 1}] {:a x, :b x})
{:a {:foo 1}, :b {:foo 1}}
(apply merge {:foo :z} [{:bar :a} {:baz :g}])
{:bar :a, :baz :g, :foo :z}
(map vector [:foo :bar :baz] (iterate inc 0))
([:foo 0] [:bar 1] [:baz 2])
(let [foo (fn [] (println "foo")) bar (fn [] (println "bar")) fly {:foo foo, :bar bar}] ((fly :foo)))
nil"foo\n"(nth (iterate (comp #(apply hash-map %) (juxt identity identity)) {}) 4)
{{{{{} {}} {{} {}}} {{{} {}} {{} {}}}} {{{{} {}} {{} {}}} {{{} {}} {{} {}}}}}
(= get (apply get ((juxt get get get) get get get)))
true(let [[q r] ((juxt quot rem) 43870 3600)] (prn [q r]))
nil"[12 670]\n"((juxt :c :d) {:a 1, :c 2, :d 7, :e -2})
[2 7]
(let [keys [:a :b]] (zipmap keys ((apply juxt keys) {:a 1})))
{:a 1, :b nil}
((juxt (fn ([] :nullary-a) ([& _] :varity-a)) (fn ([& _] :varity-b) ([] :nullary-b))))
[:nullary-a :nullary-b]
(->> '+ resolve meta ((juxt :ns :name)) (map str) (apply symbol))
clojure.core/+(defn vals->vector [m] (into {} (map (juxt key (comp vector val)) m)))
#'user/vals->vector
(map #(juxt inc dec %) [1 2 3 4 5])
(#object[clojure.core$juxt$fn__5893 0x38ebf96b "clojure.core$juxt$fn__5893@38ebf96b"] #object[clojure.core$juxt$fn__5893 0x362c1006 "clojure.core$juxt$fn__5893@362c1006"] #object[clojure.core$juxt$fn__5893 0x3213921b "clojure.core$juxt$fn__5893@3213921b"] #object[clojure.core$juxt$fn__5893 0x77111a3d "clojure.core$juxt$fn__5893@77111a3d"] #object[clojure.core$juxt$fn__5893 0x10d69515 "clojure.core...
(let [m ["the" "quick" "brown" "fox"]] ((juxt first last) (sort m)))
["brown" "the"]
(map (juxt :a :b) [[:a 1 :b2] [:a 5 :b 7]])
([nil nil] [nil nil])
(defn deconcat [coll] ((juxt take drop) (rand-int (inc (count coll))) coll))
#'user/deconcat
(map (juxt (partial + 1) (partial + 2)) [1 2 3])
([2 3] [3 4] [4 5])
(map (juxt + - *) [1 2 3] [10 20 30])
([11 -9 10] [22 -18 40] [33 -27 90])
(defn juxtcat [& args] (comp (partial apply concat) (apply juxt args)))
#'user/juxtcat
((juxt = list) (hash-map Double/NaN Double/NaN) (hash-map Double/NaN Double/NaN Double/NaN Double/NaN))
[false ({##NaN ##NaN} {##NaN ##NaN, ##NaN ##NaN})]
(map (apply juxt (map (partial partial +) (range 5))) (range 5))
([0 1 2 3 4] [1 2 3 4 5] [2 3 4 5 6] [3 4 5 6 7] [4 5 6 7 8])

