package tezos-error-monad

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

Innovation. Community. Security.