Map Has Key Continue Property

If the key that we are looking for is not in the first entry, then the "remaining" part of the map is searched for the key.

map [ entry bad_key: value, remaining ] contains key key = map remaining contains key key

Examples

map [ entry "FL": "Florida", [ entry "AZ": "Arizona", [ entry "TX": "Texas", [ ] ] ] ] contains key "TX" = map [ entry "AZ": "Arizona", [ entry "TX": "Texas", [ ] ] ] contains key "TX"

map [ entry "PST": "Pacific Time", [ entry "CST": "Central Time", [ ] ] ] contains key "EST" = map [ entry "CST": "Central Time", [ ] ] contains key "EST"

Quiz (1 point)

Please fill in the blank:

(map [ entry "PST":"Pacific Time", [ entry "MT":"Mountain Time", [ ] ] ] contains key "EST") = (map ____________ contains key "MT")

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

Comments

Please log in to add comments