map<Other> method

Valuable<Other> map<Other>(
  1. Other toElement(
    1. Output
    )
)

A method to map a Valuable from Output to Other

Implementation

Valuable<Other> map<Other>(Other Function(Output) toElement) =>
    Valuable.computed(
      (watch, {valuableContext}) => toElement(
        watch(
          this,
          valuableContext: valuableContext,
        ),
      ),
    );