Skip to content

Instantly share code, notes, and snippets.

@rneswold
Last active June 24, 2016 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rneswold/5ace9696ec92a41825f6f08607ff5dec to your computer and use it in GitHub Desktop.
Save rneswold/5ace9696ec92a41825f6f08607ff5dec to your computer and use it in GitHub Desktop.
Alternate `Lwt_stream` (signature)
exception End_of_stream
type 'a t
val create : unit -> 'a t * ('a -> unit)
val clone : 'a t -> 'a t
val next : 'a t -> 'a Lwt.t
val iter : ('a -> unit Lwt.t) -> 'a t -> unit Lwt.t
val map : ('a -> 'b) -> 'a t -> 'b t
val filter : ('a -> bool) -> 'a t -> 'a t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment