mapCells<E> method

ValueCell<Iterable<ValueCell<E>>> mapCells<E>(
  1. E fn(
    1. T e
    )
)

Apply a function on the value of every cell in cellList.

Returns an Iterable, where every element is a computed cell with fn applied on the cell, at the corresponding index, in cellList.

Implementation

ValueCell<Iterable<ValueCell<E>>> mapCells<E>(E Function(T e) fn) =>
    cellList.apply((value) => value.map((e) => e.apply(fn, key: _ElementMapKey(e, fn))),
      key: _ListMapKey(this, fn)
    ).store();