Name
lookup — Select a map element
Synopsis
any
lookup
( |
map
| MAP
, |
|
any
| KEY
, |
|
any
| DEFAULT
) ; |
Parameters
-
map
MAP
-
any
KEY
-
any
DEFAULT
Description
Gets the KEY's value of a map. Returns DEFAULT if the key does not exist. Returns nil if the found entry has a different type than the default value.
Usage
lookup ($["a":42], "b", 0) -> 0
|