In Clojure, I want to combine two lists to give a list of pairs,
> (zip \'(1 2 3) \'(4 5 6)) ((1 4) (2 5) (3 6))
In Haskell or Ruby t
There is a function called zipmap, that may have the similar effect, (zipmap (1 2 3)(4 5 6)) The ouput is as fllows: {3 6, 2 5, 1 4}
(1 2 3)