Maintainer | Ertugrul Soeylemez <es@ertes.de> |
---|
Wires for signal accumulation.
General accumulator
accum :: a -> Wire e >~ (a -> a) aSource
General accumulator. Outputs the argument value at the first
instant, then applies the input function repeatedly for subsequent
instants. This acts like the iterate
function for lists.
- Depends: current instant.
Special accumulators
countStep :: Num a => a -> Wire e >~ a aSource
Count from the given starting value, repeatedly adding the input signal to it.
- Depends: current instant.