map<E> method

ValueCell<Iterable<E>> map<E>(
  1. E toElement(
    1. T e
    )
)

Returns a cell which evaluates to Iterable.map() applied on the value in this cell.

Unlike the other extension properties and method, the returned cell does not have a key.

Implementation

ValueCell<Iterable<E>> map<E>(E Function(T e) toElement) =>
    apply((value) => value.map(toElement)).store();