Skip to content

@continuum-js/frp


@continuum-js/frp / integral

Function: integral() ​

integral(b, tick, init?): State<number>

Defined in: continuous.ts:18

Integrate a behavior with respect to a clock (forward Euler). tick carries the current time; the first tick establishes the baseline.

Parameters ​

b ​

State<number>

tick ​

Stream<number>

init? ​

number = 0

Returns ​

State<number>