get

.get dictionary:{Map<String, Any>} \
key:{String} \
orelse:{Dynamic = DynamicValue(NOT_FOUND)}
-> Any

Gets a value from a dictionary by its key.

.var {dict}
.dictionary
- a: 1
- b: 2

.dict::get {a}

Return

value corresponding to the given key, or orelse if the key is not present

Parameters

dictionary

dictionary to get the value from

key

key to get the value of

orelse

value to return if the key is not present. If unset, defaults to NOT_FOUND.

Chaining

This function is designed to be chained with other function calls:
Map<String, Any>::get key:{String} \
orelse:{Dynamic}
-> Any