IterableCellExtension<T> extension

Provides Iterable properties and methods directly on cells holding Iterabless.

on

Properties

first ValueCell<T>
Returns a cell which evaluates to Iterable.first applied on the value in this cell.
no setter
isEmpty ValueCell<bool>
Returns a cell which evaluates to Iterable.isEmpty applied on the value in this cell.
no setter
isNotEmpty ValueCell<bool>
Returns a cell which evaluates to Iterable.isNotEmpty applied on the value in this cell.
no setter
last ValueCell<T>
Returns a cell which evaluates to Iterable.last applied on the value in this cell.
no setter
length ValueCell<int>
Returns a cell which evaluates to Iterable.length applied on the value in this cell.
no setter
single ValueCell<T>
Returns a cell which evaluates to Iterable.single applied on the value in this cell.
no setter

Methods

cast<R>() ValueCell<Iterable<R>>
Returns a cell which evaluates to Iterable.cast<R>() applied on the value in this cell.
map<E>(E toElement(T e)) ValueCell<Iterable<E>>
Returns a cell which evaluates to Iterable.map() applied on the value in this cell.
toList() ValueCell<List<T>>
Returns a cell which evaluates to Iterable.toList applied on the value in this cell.
toSet() ValueCell<Set<T>>
Returns a cell which evaluates to Iterable.toSet applied on the value in this cell.