MapEnsureKey<K, V> extension

Ensure a key exists.

on

Methods

ensureKey(K key, V ifAbsent()) → void

Available on Map<K, V>, provided by the MapEnsureKey extension

If key is absent, sets thiskey = ifAbsent().