package spotlib

  1. Overview
  2. Docs
val (>>=) : ('a, 'z) M.t -> ('a -> ('b, 'z) M.t) -> ('b, 'z) M.t

synonym of bind

val (>>|) : ('a, 'z) M.t -> ('a -> 'b) -> ('b, 'z) M.t

synonum of fmap, with the flipped arguments

val (>|=) : ('a, 'z) M.t -> ('a -> 'b) -> ('b, 'z) M.t

synonum of fmap, with the flipped arguments

Applicative style binops

val (^<$>) : ('a -> 'b) -> ('a, 'z) M.t -> ('b, 'z) M.t

same as map, <$> in Haskell

val (/<*>) : ('a -> 'b, 'z) M.t -> ('a, 'z) M.t -> ('b, 'z) M.t

<*> in Haskell

OCaml

Innovation. Community. Security.