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/Signal/index.html

Module Lambda_streams.SignalSource

Represents a signal that either has data or is terminated. Used for Finite streams.

Sourcetype 'a t =
  1. | Data of 'a
  2. | EndOfSignal
Sourceval pure : 'a -> 'a t
Sourceval empty : unit -> 'a t
Sourceval default : 'a -> 'a t -> 'a

Get the signal data or the provided default value

Sourceval satisfies : ('a -> bool) -> 'a t -> bool

Check whether the signal satisfies the predicate. Returns false if it's EndOfSignal

Sourceval map : ('a -> 'b) -> 'a t -> 'b t
Sourceval filter : ('a -> bool) -> 'a t -> 'a t
Sourceval fold : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
Sourceval from_option : 'a option -> 'a t
Sourceval to_option : 'a t -> 'a option
OCaml

Innovation. Community. Security.