package octez-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a
doc/bare_structs/Bare_structs/Seq_s/index.html
Module Bare_structs.Seq_s
Source
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.t
include Seqes.Sigs.SEQMON1ALL
with type 'a mon := 'a Lwt.t
with type 'a t := 'a t
val iter : ('a -> unit) -> 'a t -> unit Lwt.t
val fold_left : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a Lwt.t
val iteri : (int -> 'a -> unit) -> 'a t -> unit Lwt.t
val fold_lefti : ('b -> int -> 'a -> 'b) -> 'b -> 'a t -> 'b Lwt.t
val for_all : ('a -> bool) -> 'a t -> bool Lwt.t
val exists : ('a -> bool) -> 'a t -> bool Lwt.t
val find : ('a -> bool) -> 'a t -> 'a option Lwt.t
val find_map : ('a -> 'b option) -> 'a t -> 'b option Lwt.t
val init : int -> (int -> 'a) -> 'a t
val unfold : ('b -> ('a * 'b) option) -> 'b -> 'a t
val forever : (unit -> 'a) -> 'a t
val iterate : ('a -> 'a) -> 'a -> 'a t
val of_dispenser : (unit -> 'a option) -> 'a t
val is_empty : 'a t -> bool Lwt.t
val length : 'a t -> int Lwt.t
val empty : 'a t
val return : 'a -> 'a t
val repeat : 'a -> 'a t
val to_dispenser : 'a t -> unit -> 'a option Lwt.t
val ints : int -> int t
module 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 t
module S :
Seqes.Sigs.SEQMON1TRANSFORMERS
with type 'a mon := 'a Lwt.t
with type 'a callermon := 'a Lwt.t
with type 'a t := 'a t
module 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 t
return_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.