remove

@Nullable
open fun remove(@NotNull key: @NotNull K): @Nullable V

Removes the mapping for a key from this map if it is present.

Return

the previous value, or null if there was no mapping for the key

Parameters

key

key whose mapping is to be removed from this map

Throws