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 associated with key, or null if there was no mapping for key.

Parameters

key

key whose mapping is to be removed from the map