put

fun put(key: K, value: V): V?

Sets the key and corresponding value, and discards one of the least-used keys if full.

Return

the previous value of key, or null if it is absent.