Object containing utility functions for using pulses
- Companion
- class
Type members
Value members
Concrete methods
Transforms the given pulse and an updated value into a pulse indicating a change from the pulse's value to the given updated value.
Transforms the given pulse and an updated value into a pulse indicating a change from the pulse's value to the given updated value.
Transforms an optional value into a pulse. If the option doesn't contain a value, an empty pulse indicating no change is returned. Otherwise, a pulse with the option's value set as updated value is returned.
Transforms an optional value into a pulse. If the option doesn't contain a value, an empty pulse indicating no change is returned. Otherwise, a pulse with the option's value set as updated value is returned.
- Type Params
- P
Value type of both option and returned pulse
- Value Params
- opt
Option to transform into a pulse
- Returns
Pulse with the option's value set as updated value, or an empty pulse if the option doesn't have a value.