remove

fun remove(key: Int): Int

Remove the mapping for the given key.

Return

the previous value associated with the key, or 0 if the key was not present.