dictionary.set()
The dictionary.set()
function sets the $value
under the $key
in a global and/or given $dictionary
.
Global dictionary is in use on $dictionary-global
set to true
, or by setting $global
argument to true
.
Parameters
$key
$key
A key under which set $value
.
$value
$value
A value to set under the $key
.
$dictionary: ()
$dictionary: ()
Additional dictionaries along with a global dictionary(if in use) to set $value
under $key
.
The $dictionary
can be provided as a map
, or as a list
where the first element is a dictionary followed by the list of keys to pick(dictionary.pick()
) and is merged into a global dictionary(if in use).
$global: null
$global: null
A bool
value indicates whether to use a global dictionary. Default, null
, then $dictionary-global
is checked.
Return
The return value is a dictionary with updated $value
in the $key
.
Examples
Last updated