It can be useful to apply effectful functions, including asynchronous, to signal values, for example, getting some data using AJAX based on a signal coming from a Flare UI and using the result in the rest of the interface.
This PR adds mapEff and mapAff that can be used to apply Eff and Aff actions to signals to produce new signals. The signatures are aligned for use in Flare which is the main motivation, see liftSF.
It can be useful to apply effectful functions, including asynchronous, to signal values, for example, getting some data using AJAX based on a signal coming from a Flare UI and using the result in the rest of the interface.
This PR adds
mapEff
andmapAff
that can be used to applyEff
andAff
actions to signals to produce new signals. The signatures are aligned for use in Flare which is the main motivation, see liftSF.