package tezos-error-monad

  1. Overview
  2. Docs
val iter : ('a -> unit Lwt.t) -> ('a, 'e) t -> (unit, 'e) Stdlib.result Lwt.t
val fold_left : ('a -> 'b -> 'a Lwt.t) -> 'a -> ('b, 'e) t -> ('a, 'e) Stdlib.result Lwt.t
val iteri : (int -> 'a -> unit Lwt.t) -> ('a, 'e) t -> (unit, 'e) Stdlib.result Lwt.t
val fold_lefti : ('b -> int -> 'a -> 'b Lwt.t) -> 'b -> ('a, 'e) t -> ('b, 'e) Stdlib.result Lwt.t
val for_all : ('a -> bool Lwt.t) -> ('a, 'e) t -> (bool, 'e) Stdlib.result Lwt.t
val exists : ('a -> bool Lwt.t) -> ('a, 'e) t -> (bool, 'e) Stdlib.result Lwt.t
val find : ('a -> bool Lwt.t) -> ('a, 'e) t -> ('a option, 'e) Stdlib.result Lwt.t
val find_map : ('a -> 'b option Lwt.t) -> ('a, 'e) t -> ('b option, 'e) Stdlib.result Lwt.t
val iter2 : ('a -> 'b -> unit Lwt.t) -> ('a, 'e) t -> ('b, 'e) t -> (unit, 'e) Stdlib.result Lwt.t
val fold_left2 : ('a -> 'b -> 'c -> 'a Lwt.t) -> 'a -> ('b, 'e) t -> ('c, 'e) t -> ('a, 'e) Stdlib.result Lwt.t
val for_all2 : ('a -> 'b -> bool Lwt.t) -> ('a, 'e) t -> ('b, 'e) t -> (bool, 'e) Stdlib.result Lwt.t
val exists2 : ('a -> 'b -> bool Lwt.t) -> ('a, 'e) t -> ('b, 'e) t -> (bool, 'e) Stdlib.result Lwt.t
val init : int -> (int -> 'a Lwt.t) -> ('a, 'e) t
val unfold : ('b -> ('a * 'b) option Lwt.t) -> 'b -> ('a, 'e) t
val forever : (unit -> 'a Lwt.t) -> ('a, 'e) t
val iterate : ('a -> 'a Lwt.t) -> 'a -> ('a, 'e) t
val map : ('a -> 'b Lwt.t) -> ('a, 'e) t -> ('b, 'e) t
val mapi : (int -> 'a -> 'b Lwt.t) -> ('a, 'e) t -> ('b, 'e) t
val filter : ('a -> bool Lwt.t) -> ('a, 'e) t -> ('a, 'e) t
val filter_map : ('a -> 'b option Lwt.t) -> ('a, 'e) t -> ('b, 'e) t
val scan : ('b -> 'a -> 'b Lwt.t) -> 'b -> ('a, 'e) t -> ('b, 'e) t
val take_while : ('a -> bool Lwt.t) -> ('a, 'e) t -> ('a, 'e) t
val drop_while : ('a -> bool Lwt.t) -> ('a, 'e) t -> ('a, 'e) t
val group : ('a -> 'a -> bool Lwt.t) -> ('a, 'e) t -> (('a, 'e) t, 'e) t
val map2 : ('a -> 'b -> 'c Lwt.t) -> ('a, 'e) t -> ('b, 'e) t -> ('c, 'e) t
val map_product : ('a -> 'b -> 'c Lwt.t) -> ('a, 'e) t -> ('b, 'e) t -> ('c, 'e) t
val partition_map : ('a -> ('b, 'c) Stdlib.Either.t Lwt.t) -> ('a, 'e) t -> ('b, 'e) t * ('c, 'e) t
val partition : ('a -> bool Lwt.t) -> ('a, 'e) t -> ('a, 'e) t * ('a, 'e) t
OCaml

Innovation. Community. Security.