I am new to Clojure and I have a simple question
Suppose I have a List of Maps. Each Card has: name and age:
My code is:
(def Person {:nom rob :age 31 } )
(def Persontwo {:nom sam :age 80 } )
(def Persontthree {:nom jim :age 21 } )
(def mylist (list Person Persontwo Personthree))
Now how do I go through the list. Say, for example, that I have a given name. How to iterate over a list to see if any of the Maps name matches: my: name. And then, if there is a card that matches, how do I get the index position of this card?
-Thanks
Jimmy
source
share