package tablecloth-native

  1. Overview
  2. Docs
type ('err, 'ok) t = ('ok, 'err) Base.Result.t
val succeed : 'ok -> ('err, 'ok) t
val fail : 'err -> ('err, 'ok) t
val withDefault : default:'ok -> ('err, 'ok) t -> 'ok
val with_default : default:'ok -> ('err, 'ok) t -> 'ok
val map2 : f:('a -> 'b -> 'c) -> ('err, 'a) t -> ('err, 'b) t -> ('err, 'c) t
val combine : ('x, 'a) t list -> ('x, 'a list) t
val map : ('ok -> 'value) -> ('err, 'ok) t -> ('err, 'value) t
val toOption : ('err, 'ok) t -> 'ok option
val to_option : ('err, 'ok) t -> 'ok option
val andThen : f:('ok -> ('err, 'value) t) -> ('err, 'ok) t -> ('err, 'value) t
val and_then : f:('ok -> ('err, 'value) t) -> ('err, 'ok) t -> ('err, 'value) t
val pp : (Format.formatter -> 'err -> unit) -> (Format.formatter -> 'ok -> unit) -> Format.formatter -> ('err, 'ok) t -> unit
OCaml

Innovation. Community. Security.