I'm very new to Clojure and can't seem to find a way to do something that I'm sure is trivial. I've looked at the assoc
function as I think this might be the answer, but can't make it work.
What I have:
keys => [:num, :name, :age]
people => [ [1, "tim", 31] [2, "bob" 33] [3, "joe", 44] ]
What I want to do is create a vector of maps, each map looks like
[ { :num 1, :name "tim", :age 31 }
{ :num 2, :name "bob", :age 33 }
{ :num 3, :name "joe", :age 44 } ]
My OO brain wants me to write a bunch of loops, but I know there is a better way I'm just a bit lost in the big API.