Get Map Entry Property

If the key that we are looking for is in the first entry in the map, then the value for the key is the value in the first entry. More formally:

value at key in map [ entry key: value, remaining ] = value

Examples

value at "TX" in map [ entry "TX": "Texas", [ entry "FL": "Florida", [ entry "AZ": "Arizona", [ ] ] ] ] = "Texas"

value at "EST" in map [ entry "EST": "Eastern Time", [ entry "PST": "Pacific Time", [ ] ] ] = "Eastern Time"

Quiz (1 point)

Please fill in the blank:

(value for "CA" from map [ entry "CA":"California", [ entry "FL":"Florida", [ entry "AZ":"Arizona", [ ] ] ] ]) = "________"

Become a subscriber to save your progress, see the correct answer, and more!

Comments

Please log in to add comments