MapCellExtension<K, V> extension

Provides Map methods directly on cells holding Mapss.

on

Properties

entries ValueCell<Iterable<MapEntry<K, V>>>
Returns a cell which evaluates to Map.entries applied on the value in this cell.
no setter
isEmpty ValueCell<bool>
Returns a cell which evaluates to Map.isEmpty applied on the value in this cell
no setter
isNotEmpty ValueCell<bool>
Returns a cell which evaluates to Map.isNotEmpty applied on the value in this cell
no setter
keys ValueCell<Iterable<K>>
Returns a cell which evaluates to Map.keys applied on the value in this cell.
no setter
length ValueCell<int>
Returns a cell which evaluates to Map.length applied on the value in this cell
no setter
values ValueCell<Iterable<V>>
Returns a cell which evaluates to Map.values applied on the value in this cell.
no setter

Methods

containsKey(ValueCell key) ValueCell<bool>
Returns a cell which evaluates to true if the Map held in this cell contains the key key.
containsValue(ValueCell val) ValueCell<bool>
Returns a cell which evaluates to true if the Map held in this cell contains the value val.

Operators

operator [](ValueCell key) ValueCell<V?>
Returns a cell which evaluates to the value of the entry with key key.