(into {} (map vector '(:foo :baz) '(:bar :binz)))
{:baz :binz, :foo :bar}
(meta (read-string "(ns ^{:foo \"bar\"} bar)"))
{:column 1, :line 1}
(conj {:foo 4, :faz 38} {:bar 5, :bing 498})
{:bar 5, :bing 498, :faz 38, :foo 4}
(apply (fn [& args] (take 3 args)) (repeat :foo))
(:foo :foo :foo)
(map vector (cycle [1 2]) [:foo :bar :baz :bing])
([1 :foo] [2 :bar] [1 :baz] [2 :bing])
(binding [*print-meta* false *print-dup* true] (print ^{:foo :bar} []))
nil"^#=(clojure.lang.PersistentArrayMap/create {:foo :bar}) []"(->> {:a nil, :b :foo} (filter val) (reduce merge {}))
{:b :foo}
(count "(str \\( (name (first [:foo])) \\))")
33(map #(apply list %1) {:foo 1, :bar 2})
((:foo 1) (:bar 2))
(sort > (vals {:foo 5, :bar 2, :baz 10}))
(10 5 2)
(update-in {:headers {:foo 1, :bar 2}} [:headers] select-keys [:bar])
{:headers {:bar 2}}
(let [^{:foo :bar} x 1] (meta (var x)))
nil(into {} (map vec (partition 2 [:foo :bar :x :y])))
{:foo :bar, :x :y}
(let [{a 0, b 1} [:foo :bar]] [b a])
[:bar :foo]
(macroexpand (macroexpand '(->> [:foo :bar] cycle (take-nth 4))))
(take-nth 4 (cycle [:foo :bar]))
(let [{:keys [foo bar]} {:foo 1, :bar 2}] foo)
1(map vec (partition 2 '(:foo "bar" :baz "spam")))
([:foo "bar"] [:baz "spam"])
(read-string {:read-cond :allow} "#?(:clj :foo :cljs :bar)")
:foo(binding [*1 (fn [x] (identity x))] ((var *1) :foo))
:foo(let [[& {a :a}] {:foo 10, :bar 20}] a)
nil(map #(apply hash-map %) {:foo 1, :bar 2})
({:foo 1} {:bar 2})
(let [{:keys [foo bar]} {:bar 22, :foo 1}] foo)
1((fn [x & _] (type x)) 123 :foo "bar")
java.lang.Long(filter #{1 2 3} [:foo 2 :bar 3])
(2 3)
(update-in {:headers {:foo 1, :bar 2}} [:headers] dissoc :bar)
{:headers {:foo 1}}
(update-in {} [:a :b :c] assoc :foo 1 :bar 2)
{:a {:b {:c {:bar 2, :foo 1}}}}
(map #(do [:foo %]) [1 2 3 4])
([:foo 1] [:foo 2] [:foo 3] [:foo 4])
((fn [& {:as x}] x) :foo 1 :bar 2)
{:bar 2, :foo 1}
(map (fn [[a b]] [a b]) {:foo "1 1"})
([:foo "1 1"])
(concat [[:foo 1 2]] [[:bar 3] [:baz 4 5]])
([:foo 1 2] [:bar 3] [:baz 4 5])
(meta (-> [2 3] (with-meta {:foo :bar}) (conj 8)))
{:foo :bar}
(let [po :foo] `(defn example [~'xs] [~po ~'po]))
(clojure.core/defn user/example [xs] [:foo po])
(update-in {:foo 12} [:bar :baz] (fnil conj #{}) 42)
{:bar {:baz #{42}}, :foo 12}
(sorted-set-by #(compare ((juxt :estimate identity) %1) ((juxt :estimage identity) %2)) {:estimate 8, :val -1} {:estimate 1, :val 42} {:estimate 1, :val 100} {:estimate :2, :val 33})
#{{:estimate 8, :val -1} {:estimate 1, :val 100} {:estimate :2, :val 33} {:estimate 1, :val 42}}
(take 6 (iterate #(mapcat (juxt count first) (partition-by identity %)) [1]))
([1] (1 1) (2 1) (1 2 1 1) (1 1 1 2 2 1) (3 1 2 2 1 1))
(let [m (apply array-map (range 100))] ((juxt class count) (dissoc m 0)))
[clojure.lang.PersistentArrayMap 49]
(map (juxt :a :b) [{:a 1, :b 2} {:a 5, :b 7}])
([1 2] [5 7])
(apply concat ((juxt take (comp rest drop)) 2 [1 2 3 4]))
(1 2 4)
(map (partial juxt [+ - *] [1 2 3]) [4 5 6])
(#object [clojure.core$juxt$fn__5893 0x2561384c "clojure.core$juxt$fn__5893@2561384c"] #object [clojure.core$juxt$fn__5893 0x2ba6d290 "clojure.core$juxt$fn__5893@2ba6d290"] #object [clojure.core$juxt$fn__5893 0x2f99533c "clojure.core$juxt$fn__5893@2f99533c"])
(into {} (map (juxt (comp keyword str) identity) [0 1 2 3 4]))
{:0 0, :1 1, :2 2, :3 3, :4 4}
((juxt #(reduce + %) #(reduce - %)) [1 2 3])
[6 -4]
((juxt (fn [[_ & rest]] rest) (fn [x] (rest x))) (range 10))
[(1 2 3 4 5 6 7 8 9) (1 2 3 4 5 6 7 8 9)]
((juxt :a :d :c) {:a 3, :b 5, :c 8, :d 1})
[3 1 8]
(map (juxt identity seq? coll?) ['(:list) [:vector] {:a :map} #{:set}])
([(:list) true true] [[:vector] false true] [{:a :map} false true] [#{:set} false true])
((apply juxt [:a :b]) {:a 1, :b 2, :c 3, :d 4})
[1 2]
(into {} (map (juxt keyword #(str % (.toUpperCase %))) ["a" "b" "c"]))
{:a "aA", :b "bB", :c "cC"}
((juxt (partial map first) (partial map second)) [[1 2] [1 3] [1 4]])
[(1 1 1) (2 3 4)]
((juxt first rest) (rest (re-matches #"(.*);(.*):(.*)" "235;2352:33")))
["235" ("2352" "33")]
(map (juxt type identity) (let [x 1] `[~x x 'x '~x ~'x]))
([java.lang.Long 1] [clojure.lang.Symbol user/x] [clojure.lang.Cons (quote user/x)] [clojure.lang.Cons (quote 1)] [clojure.lang.Symbol x])
(into {} (map (juxt (comp keyword str) (constantly 0)) [0 1 2 3 4]))
{:0 0, :1 0, :2 0, :3 0, :4 0}

