ListCellExtension<T> extension

Provides List methods directly on cells holding Lists.

on

Properties

cellList ValueCell<Iterable<ValueCell<T>>>
Returns a cell which wraps the elements of the List held in this cell in ValueCells.
no setter
reversed ValueCell<Iterable<T>>
Returns a cell which evaluates to List.reversed applied on the value in this cell.
no setter

Methods

cast<R>() ValueCell<List<R>>
Returns a cell which evaluates to List.cast<R>() applied on the value in this cell.
mapCells<E>(E fn(T e)) ValueCell<Iterable<ValueCell<E>>>
Apply a function on the value of every cell in cellList.

Operators

operator [](ValueCell<int> index) ValueCell<T>
Returns a cell with a value equal to the element at index in the List held in this cell.