o_Map At Putting Can Destroy
open override fun o_MapAtPuttingCanDestroy( self: AvailObject, keyObject: A_BasicObject, newValueObject: A_BasicObject, canDestroy: Boolean): A_Map
Content copied to clipboard
Answer a map like this one but with keyObject associated with newValueObject instead of any existing mapping for keyObject. The original map can be destroyed or recycled if canDestroy is true and it's mutable.
Return
The new map, possibly the given one if canDestroy is true.
Parameters
self
The map.
key Object
The key to add or replace.
new Value Object
The new value to store under the provided key.
can Destroy
Whether the given map may be recycled (if mutable).