OR
Size: a a a
OR
OR
OR
tap> пока не разбирался, скорее всего это мои кривые ручки.OR
reveal иногда жесточайше тормозит.A
OR
DL
ND
DL
ND
ND
DL
E
IG
(defn foo-moo [foo moo]
(let [len (max (count foo) (count moo))]
(for [n (range len)]
(let [a (get foo n)
b (get moo n)]
(if (and a b)
[a b]
(or a b))))))
(foo-moo [1 2 3] [2 3])
([1 2] [2 3] 3)
KC
(defn map-exhaustive [f a b]
(let [a-c (count a)
b-c (count b)
[a' b'] (cond
(< a-c b-c) [(concat a (repeat nil)) b]
(< b-c a-c) [a (concat b (repeat nil))]
:else [a b])]
(map f a' b')))
ИИ