I'm learning clojure, and I want to take a vector of names, in last name -> first name order, of multiple people, and convert it to a vector of maps...
["Pan" "Peter" "Mouse" "Mickey"]
Should become...
[{:firstName Peter, :lastName Pan} {:firstName Mickey, :lastName Mouse}]
I've tried this, which doesn't work...
(for [[lastName firstName]
(list ["Pan" "Peter" "Mouse" "Mickey"])]
{:firstName firstName, :lastName lastName}
)
If I remove the list it turns the first/last name into individual characters.
I'm at a complete loss as to how to go about doing this.