lookup-map-value

Finds a key in a map (of key-value pairs) and returns the associated value.

Arguments

Inputs:

dictionary (map): The map to lookup the key-value pair.

query (key): The key to be found in 'dictionary'.

default (value): A value to be returned if query is not found in dictionary. If unspecified, no value will be returned.

Output:

value: The value in dictionary associated to query if found, otherwise default value will be returned.

Last updated