MapExtension<K, V> extension
Provides extension methods for the Map class to perform various operations.
- on
-
- Map<
K, V>
- Map<
Methods
-
addIf(
bool f(K key, V value), K key, V value) → Map< K, V> -
Available on Map<
Adds an entry to the map if the predicateK, V> , provided by the MapExtension extensionf
is satisfied. -
addIndexIf(
bool f(K key, V value, int index), K key, V value, int index) → Map< K, V> -
Available on Map<
Adds an entry to the map if the predicateK, V> , provided by the MapExtension extensionf
with index is satisfied.