o_MapAtPuttingCanDestroy

open override fun o_MapAtPuttingCanDestroy(self: AvailObject, keyObject: A_BasicObject, newValueObject: A_BasicObject, canDestroy: Boolean): A_Map

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.

keyObject

The key to add or replace.

newValueObject

The new value to store under the provided key.

canDestroy

Whether the given map may be recycled (if mutable).