DefaultMapExtension<K, V> extension

on

Methods

withDefault(V value) MapWithDefault<K, V>

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

Returns a mutable view of this Map that responds with the provided default value, when the caller tries to access a non-existent key.