Name
dict_get — Returns the dependent part that corresponds to the given key in the given dictionary.
Synopsis
any
dict_get
(
|
in dict dictionary , |
in key any , | |
in
default_value
any
) ; |
Description
The function returns the dependent part that corresponds to the given key in the given dictionary.
The function returns default_value
if the dictionary does not contain a pair whose key is equivalent to the given one.
When only two arguments are passed to the function the default value is integer zero.
Parameters
dict
Dictionary object to search in.
key
Key whose dependent part should be found.
default_value
The default value to be returned if the key is not found in the dictionary.
Return Types
The function can return a value of any type.