3 ms·
(let [i1 [1 1 2 3] i2 (map #(inc %) i1)] (map vector i1 i2)) => ([1 2] [1 2] [2 3] [3 4]) All standard tools. I don't know what your definition
by adamtulinius 12y ago
(let [i1 [1 1 2 3]
i2 (map #(inc %) i1)]
(map vector i1 i2))
=> ([1 2] [1 2] [2 3] [3 4])
All standard tools. I don't know what your definition of zip-with is, but it certainly differs from the one I'm used to from Haskell, and it seems like other people disagree with you as well (but I suppose you'll just consider me 'constrainer' or whatever as well).