package promise_jsoo

  1. Overview
  2. Docs
val (>>|) : ('a, 'e) result t -> ('a -> 'b) -> ('b, 'e) result t

Equivalent to Promise.Result.map

val (>>=) : ('a, 'e) result t -> ('a -> ('b, 'e) result t) -> ('b, 'e) result t

Equivalent to Promise.Result.bind

val let+ : ('a, 'e) result t -> ('a -> 'b) -> ('b, 'e) result t

Equivalent to Promise.Result.map

val let* : ('a, 'e) result t -> ('a -> ('b, 'e) result t) -> ('b, 'e) result t

Equivalent to Promise.Result.bind

OCaml

Innovation. Community. Security.