将列表项分发给clojure中的变量

leo*_*bot 1 clojure

当我通过这个功能

(into [] 
      (map #(+ %1 %2)
           [1 2]
           [5 6]))
Run Code Online (Sandbox Code Playgroud)

我得到这个结果: [6 8]

我该怎么做才能得到这个:[6 7 7 8]保持这个#(+ %1 %2)

map在这种情况下似乎不是正确的功能.

Ale*_*art 5

使用for当你想要一个笛卡尔乘积:

user=> (for [x [1 2] y [5 6]]
  #_=>   (+ x y))
(6 7 7 8)
Run Code Online (Sandbox Code Playgroud)