1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
[;1m erase()[0m
Returns the process dictionary and deletes it.
For example:
> put(key1, {1, 2, 3}),
put(key2, [a, b, c]),
erase().
[{key1,{1,2,3}},{key2,[a,b,c]}]
[;1m erase(Key)[0m
Returns the value [;;4mVal[0m associated with [;;4mKey[0m and deletes it from
the process dictionary. Returns [;;4mundefined[0m if no value is
associated with [;;4mKey[0m.
The average time complexity for the current implementation of this
function is O([;;4m1[0m) and the worst case time complexity is O([;;4mN[0m),
where [;;4mN[0m is the number of items in the process dictionary.
For example:
> put(key1, {merry, lambs, are, playing}),
X = erase(key1),
{X, erase(key1)}.
{{merry,lambs,are,playing},undefined}
|