remove

open fun remove(key: T): Y

Removes the item at the given key and returns the removed item if present, and null otherwise.

Parameters

key

The key to remove the item at.