Module CCResult.Infix
val (>|=) : ('a, 'err) t -> ('a -> 'b) -> ('b, 'err) tval (>>=) : ('a, 'err) t -> ('a -> ('b, 'err) t) -> ('b, 'err) tMonadic composition.
e >>= fproceeds asf xifeisOk xor returnseifeis anError.
val (<*>) : ('a -> 'b, 'err) t -> ('a, 'err) t -> ('b, 'err) ta <*> bevaluatesaandb, and, in case of success, returnsOk (a b). Otherwise, it fails, and the error ofais chosen over the error ofbif both fail.
Let operators on OCaml >= 4.08.0, nothing otherwise
- since
- 2.8