package octez-libs
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053
doc/bare_structs/Bare_structs/Seq_s/index.html
Module Bare_structs.Seq_sSource
include Bare_sigs.Seq_s.S
This is similar to S.t but the suspended node is a promise.
and 'a t = unit -> 'a node Lwt.tinclude Seqes.Sigs.SEQMON1ALL
with type 'a mon := 'a Lwt.t
with type 'a t := 'a t
val iter : ('a -> unit) -> 'a t -> unit Lwt.tval fold_left : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a Lwt.tval iteri : (int -> 'a -> unit) -> 'a t -> unit Lwt.tval fold_lefti : ('b -> int -> 'a -> 'b) -> 'b -> 'a t -> 'b Lwt.tval for_all : ('a -> bool) -> 'a t -> bool Lwt.tval exists : ('a -> bool) -> 'a t -> bool Lwt.tval find : ('a -> bool) -> 'a t -> 'a option Lwt.tval find_map : ('a -> 'b option) -> 'a t -> 'b option Lwt.tval init : int -> (int -> 'a) -> 'a tval unfold : ('b -> ('a * 'b) option) -> 'b -> 'a tval forever : (unit -> 'a) -> 'a tval iterate : ('a -> 'a) -> 'a -> 'a tval of_dispenser : (unit -> 'a option) -> 'a tval is_empty : 'a t -> bool Lwt.tval length : 'a t -> int Lwt.tval empty : 'a tval return : 'a -> 'a tval repeat : 'a -> 'a tval to_dispenser : 'a t -> unit -> 'a option Lwt.tval ints : int -> int tmodule E :
Seqes.Sigs.SEQMON2TRAVERSORS
with type ('a, 'e) mon := ('a, 'e) Stdlib.result Lwt.t
with type ('a, 'e) callermon := ('a, 'e) Stdlib.result
with type ('a, 'e) t := 'a tmodule S :
Seqes.Sigs.SEQMON1TRANSFORMERS
with type 'a mon := 'a Lwt.t
with type 'a callermon := 'a Lwt.t
with type 'a t := 'a tmodule ES :
Seqes.Sigs.SEQMON2TRAVERSORS
with type ('a, 'e) mon := ('a, 'e) Stdlib.result Lwt.t
with type ('a, 'e) callermon := ('a, 'e) Stdlib.result Lwt.t
with type ('a, 'e) t := 'a treturn_s p is a sequence with the value the promise p resolves to as its single element.
cons_s p s is the sequence containing the value the promise p resolves to, followed by s.
Similar to iter but wraps the iteration in Lwt. The steps of the iteration are started concurrently: one iteration is started as soon as the node becomes resolved. The promise iter_p f s is resolved only once all the promises of the iteration are. At this point it is either fulfilled if all promises are, or rejected if at least one of them is.
Similar to iteri but wraps the iteration in Lwt. All the steps of the iteration are started concurrently. The promise iteri_p f s is resolved only once all the promises of the iteration are. At this point it is either fulfilled if all promises are, or rejected if at least one of them is.