Companion

Functions

Link copied to clipboard
inline fun <A> const(value: A): Behavior<A>

Builds a behavior whose value remains constant for all times.

Link copied to clipboard
inline fun <A> continuous(noinline f: (Duration) -> A): Behavior<A>

Create a Behavior from a continuous function of time since the initial state of the behavior.

Link copied to clipboard
inline fun <A, B> impulse(event: Event<A>, zeroValue: B, noinline onEvent: (A) -> B): Behavior<B>
Link copied to clipboard
inline fun <T> integral(f: Behavior<T>): Behavior<T>
Link copied to clipboard
inline fun <A> polynomial(coefficients: List<A>): Behavior.Polynomial<A>

Builds a behavior polynomial in time from the list of coefficients.

Link copied to clipboard
inline fun <A> sampled(noinline current: SampleScope.() -> A): Behavior<A>