ComputedMapExtension<K, V> extension

Extension on Map to provide computed default values.

on

Methods

withComputed(V computation(K key)) → MapWithComputed<K, V>

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

Returns a mutable view of this map that computes and stores absent keys with the provided computation.