(flatten {:foo "bar", :a 1})
()(:foo {:a 1, :b 2})
nil(def my-data {:foo {:bar 12}})
#'user/my-data
(meta ^{:type :foo} 'foo)
nil(:foo (meta (conj (with-meta (seq '(1 2 3)) {:foo "bar"}) 4)))
"bar"(let [m {:foo 0, :bar 1}] (every? (partial contains? m) [:foo :bar]))
true(get-in {:foo [{:mep "yup"} {:mep "no way"}], :bar "nope"} [:foo 0 :mep])
"yup"(apply merge-with #((if (seq? %) conj list) % %2) '({:foo [1], :bar [2]} {:foo [2]} {:foo [3]}))
{:bar [2], :foo ([3] [1] [2])}
((juxt list? seq?) (cons 1 '(2)))
[false true]
((juxt type class) `(1 2 3))
[clojure.lang.Cons clojure.lang.Cons]
((juxt str #(+ 1 %)) 2)
["2" 3]
((juxt take drop take-nth) 2 (range 10))
[(0 1) (2 3 4 5 6 7 8 9) (0 2 4 6 8)]
(apply = ((juxt read-string symbol) "symbol name"))
false(sort-by (juxt clojure.string/reverse identity) ["quux" "foo" "bar"])
("foo" "bar" "quux")
((juxt macroexpand-1 macroexpand) '(with-in-str "foo" (read)))
[(clojure.core/with-open [s__28809__auto__ (clojure.core/-> (java.io.StringReader. "foo") clojure.lang.LineNumberingPushbackReader.)] (clojure.core/binding [clojure.core/*in* s__28809__auto__] (read))) (clojure.core/let [s__28809__auto__ (clojure.core/-> (java.io.StringReader. "foo") clojure.lang.LineNumberingPushbackReader.)] (try (clojure.core/with-open [] (clojure.core/binding [clojure.core/*in...
((apply juxt [even? odd? pos? integer?]) 3)
[false true true true]
(map (juxt - inc) [1 2 3])
([-1 2] [-2 3] [-3 4])
(mapcat (juxt inc identity) [1 2 3])
(2 1 3 2 4 3)
((juxt pop identity peek) (conj [0] 1))
[[0] [0 1] 1]
((juxt nth get) [:a :b :c] 1)
[:b :b]
((juxt (fn [x] (meta x)) meta) clojure.core/+)
[nil nil]
(map (juxt identity -) [1 2 3])
([1 -1] [2 -2] [3 -3])
(not-any? true? ((juxt vector? map? list?) 5))
true(map (juxt identity str) [1 2 3])
([1 "1"] [2 "2"] [3 "3"])
((juxt identity class) (cons 1 (lazy-seq nil)))
[(1) clojure.lang.Cons]
(map (juxt class str) [(fn []) (fn test [])])
([sci.impl.fns$fun$arity_0__26683 "sci.impl.fns$fun$arity_0__26683@7baacf84"] [sci.impl.fns$fun$arity_0__26683 "sci.impl.fns$fun$arity_0__26683@756d2e81"])
((juxt first identity) " the final frontier")
[\space " the final frontier"]
(let [fs (juxt inc dec)] (fs 1))
[2 0]
((juxt :a :b) {:a 1, :b 2})
[1 2]
((juxt = ==) (int 1) (long 1))
[true true]
(apply hash-map (merge-with vector {:foo '+, :bar '-} {:foo 5, :bar 1}))
{[:foo [+ 5]] [:bar [- 1]]}
(first (keep-indexed #(if (= :foo %2) %1) [:bar :baz :foo :tom]))
2(let [a (atom {:foo 0, :bar 0})] (swap! a update :foo inc))
{:bar 0, :foo 1}
(-> [] (with-meta {:type :foo}) type)
:foo(if-let [foo false] :foo :bar)
:bar(map class [:foo 'foo "foo"])
(clojure.lang.Keyword clojure.lang.Symbol java.lang.String)
(println "##(println :foo)")
nil"##(println :foo)\n"(seq {:foo 1, :bar 2})
([:foo 1] [:bar 2])
(map-indexed hash-map [:foo :bar :baz])
({0 :foo} {1 :bar} {2 :baz})
(get {:foo "foo"} :bar "bar")
"bar"(-> (make-hierarchy) (derive :foo :bar))
{:ancestors {:foo #{:bar}}, :descendants {:bar #{:foo}}, :parents {:foo #{:bar}}}
(map name [:foo 'foo "foo"])
("foo" "foo" "foo")
(meta '^{:type :foo} foo)
{:type :foo}
(get :key {:key :foo} :bar)
:bar('foo {'foo :sym, :foo :key})
:sym(for [a [{:foo 1}]] a)
({:foo 1})
(get-in {:foo [4 {:bar 5}]} [])
{:foo [4 {:bar 5}]}
(into {} {:foo :bar, :bat :baz})
{:bat :baz, :foo :bar}
(update-in {} [:foo] (fnil conj []) :baz)
{:foo [:baz]}
({:a {:b {:c :foo}}} :a)
{:b {:c :foo}}

