((juxt (fn [& {:keys [a b], :or {a 10, b 20}, :as more}] [a b more]) (fn [& {:keys [a b], :or [a 10 b 20], :as more}] [a b more])) :a 10)
[[10 20 {:a 10}] [10 nil {:a 10}]]
(letfn [(map-keys [f m] (into {} (map (fn [[k v]] [(f k) (if (associative? v) (map-keys f v) v)]) m)))] (map-keys name {:a {:foo 3, :bar {:baz 4}}, :b 2}))
{"a" {"bar" {"baz" 4}, "foo" 3}, "b" 2}
(let [ord #(quot % 1000)] (apply mapcat (fn [prev sub] (concat (repeat (dec (- (ord (first sub)) (ord (first prev)))) []) [sub])) ((juxt identity rest) (cons [0] (partition-by ord [1 35 456 2005 3045 3987])))))
((1 35 456) [] (2005) (3045 3987))
(apply (juxt max min) (apply map + (partition 20 [2 1 2 2 0 3 0 0 1 -1 1 -1 1 -1 -2 0 -3 0 -2 -3 -1 -3 -3 -2 -2 -2 0 -4 -2 -2])))
[3 -3]
(first (reduce (fn [[acc pa] [a b c]] (let [a (if (empty? a) pa a)] [(conj acc [a b c]) a])) [] [["fresh" :hello :world] ["" :foo :bar] ["" :bar :baz] ["cool" :qux :qex] ["" :etc :etc]]))
(["cool" :etc :etc] ["cool" :qux :qex] ["fresh" :bar :baz] ["fresh" :foo :bar] ["fresh" :hello :world])
(let [sym (gensym) h #(with-meta % {sym true}) g #(if (-> % meta sym) (constantly %) %) f #(if (fn? %) [(%) (%) (%)] %) x 'foo] (= ((comp f g h) x) ((juxt f g h) x) [x x x]))
true(let [gross (reify Object (equals [_ x] true)) f #(if (identical? % gross) [gross gross gross] gross) g (constantly gross) h (constantly gross) x 5/19] (= ((comp f g h) x) ((juxt f g h) x) [x x x]))
false((fn [a b c d e f g h i j k l m n o p q r s t & u] :foo) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21)
:foo

