MapGetOrElse<K, V> extension

on

Methods

getOrElse(K key, V defaultValue()) → V

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

Returns the value for the given key, or the result of the defaultValue function if there was no entry for the given key.