How to combine sequences in clojure?
clojure
Solution
if you use clojure-1.4.0 or above, you can use `mapv`:
user> (mapv + [1 2 3 4] [10 20 30 40] [100 200 300 400])
[111 222 333 444]
Problem
I have the following sequences ``` (def a [1 2 3 4]) (def b [10 20 30 40]) (def c [100 200 300 400]) ``` I want to combine the sequences element by element: ``` (... + a b c) ``` To give me: ``` [111 222 333 444] ``` Is there a standard function available to do so? Or alternatively what is a good idiomatic way to do so?