keys
and vals
are functions that return all the keys and all the values in the map respectively.
The order of the keys or values returned is not guaranteed, so we could have gotten (:firstname :lastname)
or (:lastname :firstname)
.
Lets get the keys:
(keys {:firstname "Sally" :lastname "Brown"})
Now lets get the values:
(vals {:firstname "Sally" :lastname "Brown"})
Use the map you made about yourself in previous exercise and extract the keys & values from that.
Create a vector of maps containing the first name, last name and hometown of two or three other classmates around you.
Add your map to their information using conj.
()