package tezos-error-monad

  1. Overview
  2. Docs
type !'a t = 'a Stdlib.Seq.t
and !'a node = 'a Stdlib.Seq.node =
  1. | Nil
  2. | Cons of 'a * 'a t
val empty : 'a t
val return : 'a -> 'a t
val map : ('a -> 'b) -> 'a t -> 'b t
val filter : ('a -> bool) -> 'a t -> 'a t
val filter_map : ('a -> 'b option) -> 'a t -> 'b t
val flat_map : ('a -> 'b t) -> 'a t -> 'b t
val fold_left : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
val iter : ('a -> unit) -> 'a t -> unit
val empty_e : ('a t, 'trace) Stdlib.result
val empty_s : 'a t Lwt.t
val empty_es : ('a t, 'trace) Stdlib.result Lwt.t
val nil_e : ('a node, 'trace) Stdlib.result
val nil_s : 'a node Lwt.t
val nil_es : ('a node, 'trace) Stdlib.result Lwt.t
val fold_left_e : ('a -> 'b -> ('a, 'trace) Stdlib.result) -> 'a -> 'b t -> ('a, 'trace) Stdlib.result
val fold_left_s : ('a -> 'b -> 'a Lwt.t) -> 'a -> 'b t -> 'a Lwt.t
val fold_left_es : ('a -> 'b -> ('a, 'trace) Stdlib.result Lwt.t) -> 'a -> 'b t -> ('a, 'trace) Stdlib.result Lwt.t
val iter_e : ('a -> (unit, 'trace) Stdlib.result) -> 'a t -> (unit, 'trace) Stdlib.result
val iter_s : ('a -> unit Lwt.t) -> 'a t -> unit Lwt.t
val iter_es : ('a -> (unit, 'trace) Stdlib.result Lwt.t) -> 'a t -> (unit, 'trace) Stdlib.result Lwt.t
val iter_p : ('a -> unit Lwt.t) -> 'a t -> unit Lwt.t
val map_e : ('a -> ('b, 'trace) Stdlib.result) -> 'a t -> ('b t, 'trace) Stdlib.result
val map_s : ('a -> 'b Lwt.t) -> 'a t -> 'b t Lwt.t
val map_es : ('a -> ('b, 'trace) Stdlib.result Lwt.t) -> 'a t -> ('b t, 'trace) Stdlib.result Lwt.t
val map_p : ('a -> 'b Lwt.t) -> 'a t -> 'b t Lwt.t
val filter_e : ('a -> (bool, 'trace) Stdlib.result) -> 'a t -> ('a t, 'trace) Stdlib.result
val filter_s : ('a -> bool Lwt.t) -> 'a t -> 'a t Lwt.t
val filter_es : ('a -> (bool, 'trace) Stdlib.result Lwt.t) -> 'a t -> ('a t, 'trace) Stdlib.result Lwt.t
val filter_map_e : ('a -> ('b option, 'trace) Stdlib.result) -> 'a t -> ('b t, 'trace) Stdlib.result
val filter_map_s : ('a -> 'b option Lwt.t) -> 'a t -> 'b t Lwt.t
val filter_map_es : ('a -> ('b option, 'trace) Stdlib.result Lwt.t) -> 'a t -> ('b t, 'trace) Stdlib.result Lwt.t
val find : ('a -> bool) -> 'a t -> 'a option
val find_e : ('a -> (bool, 'trace) Stdlib.result) -> 'a t -> ('a option, 'trace) Stdlib.result
val find_s : ('a -> bool Lwt.t) -> 'a t -> 'a option Lwt.t
val find_es : ('a -> (bool, 'trace) Stdlib.result Lwt.t) -> 'a t -> ('a option, 'trace) Stdlib.result Lwt.t
val iter_ep : ('a -> (unit, 'error TzTrace.trace) Stdlib.result Lwt.t) -> 'a t -> (unit, 'error TzTrace.trace) Stdlib.result Lwt.t
val map_ep : ('a -> ('b, 'error TzTrace.trace) Stdlib.result Lwt.t) -> 'a t -> ('b t, 'error TzTrace.trace) Stdlib.result Lwt.t
OCaml

Innovation. Community. Security.