continuous

inline fun <A> continuous(noinline f: (Duration) -> A): Behavior<A>(source)

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

Example:

val wave = Behavior.continuous { time ->
sin(time.seconds)
}

NOTE: The function used to define continuous should be pure. For impure / non-deterministic behaviors, you should use sampled instead.