Module Msynth.Sparse

Sparse streams.

type 'a t = ('a -> unit) -> unit

A sparse stream, which runs a continuation whenever there is a stream to play.

val return : 'a -> 'a t

A constant stream.

val bind : ('a -> 'b t) -> 'a t -> 'b t
val to_stream : 'a -> 'a0 t -> 'a1 Stream.t

Build a stream from a sparse stream.