package lambda_streams

  1. Overview
  2. Docs
Lambda-based streaming library

Install

Dune Dependency

Authors

Maintainers

Sources

0.1.2.tar.gz
md5=8c1ce04ee769b56434696bd57aee1a5b
sha512=9bb794f3852da60e536277f41ca5c6db678e5f0f5100ca13bf4c054a8d5c17834891c9ba2d73ddd35dc4f52f4b8be6076611b8f8c413eb6e93d61c161c67f9aa

doc/lambda_streams/Lambda_streams/Finite/Async/index.html

Module Finite.AsyncSource

Represents the finite version of an Lambda_streams.Async stream.

Sourcetype 'a t = 'a Signal.t Async.t
Sourceval pure : 'a -> 'a t
Sourceval empty : unit -> 'a t
Sourceval from_list : 'a list -> 'a t
Sourceval map : ('a -> 'b) -> 'a t -> 'b t
Sourceval filter : ('a -> bool) -> 'a t -> 'a t
Sourceval scan : ('b -> 'a -> 'b) -> 'b -> 'a t -> 'b t
Sourceval take : int -> 'a t -> 'a t
Sourceval take' : ?close:unit Sync.output -> int -> 'a Async.t -> 'a t

Takes n elements from an infinite stream and converts it to a finite one. Optionally takes an output stream (?close) to close the connection at Signal.t.EndOfSignal if the async stream is connection-based.

OCaml

Innovation. Community. Security.