"take" (mapping::take)

Returns the value at the given key and removes the key from the mapping.

Synopsis

T take(T key, T defaultValue = anytype());

Parameters

Parameter Description
key Mapping key
defaultValue Value that is returned if key does not exist.

Return Value

Value at the given key. If the key is not found, the function returns the defaultValue.

Description

-

Assignment

Mapping Methods