((bean "jokes") :foo :bar)
:bar(:foo [1 2 3])
nil(:foo {:bar 10} 20)
20(class (map inc :foo))
clojure.lang.LazySeq(fn? #(:foo %1))
true(key (first {:foo "bar"}))
:foo(get [1 2] :foo)
nil({:foo 3} :bar 10)
10(cons :foo (get {} :x))
(:foo)
(merge-with apply {:foo +} {})
{:foo #object [clojure.core$_PLUS_ 0x35b52c2b "clojure.core$_PLUS_@35b52c2b"]}
(assoc-in {} [:foo :bar] 1)
{:foo {:bar 1}}
(partition 2 1 ({:foo 1, :bar 2} {:foo nil, :bar 3}))
()(let [c [{:foo 1} {:foo 3, :mykey 7}]] (filter :mykey c))
({:foo 3, :mykey 7})
(-> {:foo 1, :bar 2} (update-in [:foo] inc) (update-in [:bar] inc))
{:bar 3, :foo 2}
(let [a {:foo [10 20 30]}] (-> a :foo (nth 1)))
20(mapv (juxt first rest next) [() [] #{} {} nil])
[[nil () nil] [nil () nil] [nil () nil] [nil () nil] [nil () nil]]
((juxt list? seq?) (map identity '(2)))
[false true]
(conj [] ((juxt second first) [:a :b :c]))
[[:b :a]]
(-> first var meta ((juxt :line :file)))
[nil nil]
((juxt identity count) (repeat 1000 (symbol "")))
[( ...
(mapv (juxt dec identity inc) (range 10))
[[-1 0 1] [0 1 2] [1 2 3] [2 3 4] [3 4 5] [4 5 6] [5 6 7] [6 7 8] [7 8 9] [8 9 10]]
(apply hash-map ((juxt :a :b) {:a 1}))
{1 nil}
((juxt type identity) (apply hash-map (range 30)))
[clojure.lang.PersistentHashMap {0 1, 2 3, 4 5, 6 7, 8 9, 10 11, 12 13, 14 15, 16 17, 18 19, 20 21, 22 23, 24 25, 26 27, 28 29}]
(map sequential? ((juxt set list* vec) [3]))
(false true true)
(mapcat (juxt inc dec) [1 2 3])
(2 0 3 1 4 2)
(map (juxt identity inc) [1 2 3])
([1 2] [2 3] [3 4])
((juxt identity #(* % %)) 6)
[6 36]
(map (juxt list? seq? sequential?) [() [] {} (range 0)])
([true true true] [false false true] [false false false] [true true true])
((juxt first second) [[1 2] [3 4]])
[[1 2] [3 4]]
(letfn [(juxt [& fs] #(map (fn [f] (f %)) fs))] (first ((juxt inc println) 4)))
5(let [a (atom {:foo 0})] (swap! a update-in [:foo] + 5))
{:foo 5}
(macroexpand '(-> {:foo 0} (update :foo inc) (assoc :bar 10)))
(assoc (update {:foo 0} :foo inc) :bar 10)
(binding [*print-dup* true] (println (sorted-set-by #(compare (:foo %1) (:foo %2)))))
nil"#=(clojure.lang.PersistentTreeSet/create [])\n"(update-in {:foo {:bar {:baz 1}}} [:foo :bar] #(dissoc % :baz))
{:foo {:bar {}}}
(clojure.walk/prewalk (fn [x] (if (:foo x) (assoc x :key "foo") x)) {:bar "bar", :foo "asdf", :blergh {:foo "eieie"}})
{:bar "bar", :blergh {:foo "eieie", :key "foo"}, :foo "asdf", :key "foo"}
(some #(when (= (:foo %) "f") %) [{:a 3} {:foo "g"} {:foo "f", :bar "z"} {:x 1}])
{:bar "z", :foo "f"}
(vals (merge-with vector {:foo +, :bar -} {:foo 5, :bar 1}))
([#object [clojure.core$_PLUS_ 0x35b52c2b "clojure.core$_PLUS_@35b52c2b"] 5] [#object [clojure.core$_ 0x173365be "clojure.core$_@173365be"] 1])
(let [{i :foo} {:foo {:bar 1, :baz 2}} output-val [i]] output-val)
[{:bar 1, :baz 2}]
((juxt first rest) [1 2 3 4])
[1 (2 3 4)]
(map (juxt next rest) [[] [1] [1 2]])
([nil ()] [nil ()] [(2) (2)])
((juxt #{:k 1} {:k 1}) :k)
[:k 1]
((juxt type identity vector?) (first {:a 0}))
[clojure.lang.MapEntry [:a 0] true]
(def split (juxt select-keys (partial apply dissoc)))
#'user/split
(map (juxt first rest next) [() [] #{} {} nil])
([nil () nil] [nil () nil] [nil () nil] [nil () nil] [nil () nil])
((juxt #(Integer/toHexString (hash %)) str) (Object.))
["74ae110e" "java.lang.Object@74ae110e"]
(let [{i :foo} {:foo {:bar 1, :baz 2}} output-val [i]] i)
{:bar 1, :baz 2}
((juxt identity vec) (cons 1 [2 3]))
[(1 2 3) [1 2 3]]
(into {} (map (juxt identity str) [:a :b]))
{:a ":a", :b ":b"}
(apply format "%s/%s" ((juxt namespace name) :foo/bar))
"foo/bar"((juxt :first :last) {:first "Bob", :last "Smith"})
["Bob" "Smith"]

