package tezos-lwt-result-stdlib
Tezos: error-aware stdlib replacement
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-v10.2.tar.bz2
sha256=6b33e0549574c89a63538c94ce5555dd141e3c0fb5d934abff07d702fa3244d2
sha512=681a197baabec6e2f806871d43490382243207518f8fcf932741cd314d8717e46db2b6a5adc222f8726083a5dd911083b4931b7e878ab815f8f1a32763d1bf93
doc/bare_structs/Bare_structs/Seq_es/index.html
Module Bare_structs.Seq_es
include Bare_sigs.Seq_es.S
with type ('a, 'e) seq_e_t := ('a, 'e) Seq_e.t
and type 'a seq_s_t := 'a Seq_s.t
This is similar to Seq.S
.t
but the suspended node is a promised result.
Similarly to Seq_e
, sequences of this module can be interrupted by an error. In this case, traversal has fully applied to the successful prefix before the returned promise evaluates to Error _
.
and ('a, 'e) t = unit -> (('a, 'e) node, 'e) Stdlib.result Lwt.t
val empty : ('a, 'e) t
val nil : ('a, 'e) node
val return : 'a -> ('a, 'e) t
val return_e : ('a, 'e) Stdlib.result -> ('a, 'e) t
val return_s : 'a Lwt.t -> ('a, 'e) t
val return_es : ('a, 'e) Stdlib.result Lwt.t -> ('a, 'e) t
val interrupted : 'e -> ('a, 'e) t
val interrupted_s : 'e Lwt.t -> ('a, 'e) t
val first : ('a, 'e) t -> ('a, 'e) Stdlib.result option Lwt.t
val fold_left :
('a -> 'b -> 'a) ->
'a ->
('b, 'e) t ->
('a, 'e) Stdlib.result Lwt.t
val fold_left_e :
('a -> 'b -> ('a, 'e) Stdlib.result) ->
'a ->
('b, 'e) t ->
('a, 'e) Stdlib.result Lwt.t
See Seq_e.fold_left_e
for a warning about traversal and interruption errors being indistinguishable. This applies to all _e
and _es
functions of this module.
val fold_left_s :
('a -> 'b -> 'a Lwt.t) ->
'a ->
('b, 'e) t ->
('a, 'e) Stdlib.result Lwt.t
val fold_left_es :
('a -> 'b -> ('a, 'e) Stdlib.result Lwt.t) ->
'a ->
('b, 'e) t ->
('a, 'e) Stdlib.result Lwt.t
val iter : ('a -> unit) -> ('a, 'e) t -> (unit, 'e) Stdlib.result Lwt.t
val iter_e :
('a -> (unit, 'e) Stdlib.result) ->
('a, 'e) t ->
(unit, 'e) Stdlib.result Lwt.t
val iter_s : ('a -> unit Lwt.t) -> ('a, 'e) t -> (unit, 'e) Stdlib.result Lwt.t
val iter_es :
('a -> (unit, 'e) Stdlib.result Lwt.t) ->
('a, 'e) t ->
(unit, 'e) Stdlib.result Lwt.t
val unfold : ('b -> ('a * 'b) option) -> 'b -> ('a, 'e) t
val unfold_s : ('b -> ('a * 'b) option Lwt.t) -> 'b -> ('a, 'e) t
val unfold_e : ('b -> (('a * 'b) option, 'e) Stdlib.result) -> 'b -> ('a, 'e) t
val unfold_es :
('b -> (('a * 'b) option, 'e) Stdlib.result Lwt.t) ->
'b ->
('a, 'e) t
val of_seq : 'a Stdlib.Seq.t -> ('a, 'e) t
val of_seq_s : 'a Lwt.t Stdlib.Seq.t -> ('a, 'e) t
val of_seq_e : ('a, 'e) Stdlib.result Stdlib.Seq.t -> ('a, 'e) t
val of_seq_es : ('a, 'e) Stdlib.result Lwt.t Stdlib.Seq.t -> ('a, 'e) t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>