withDefault method

ValueCell<T> withDefault(
  1. ValueCell<T> cell
)

Create a cell that evaluates to the value of cell when this meta cell is empty.

NOTE: The returned cell will evaluate to the value of cell until, the value of the cell, pointed to by this meta cell, changes its value.

Implementation

ValueCell<T> withDefault(ValueCell<T> cell) =>
    onError<EmptyMetaCellError>(cell);