package of_json

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

t >>= f returns a computation that sequences the computations represented by two monad elements. The resulting computation first does t to yield a value v, and then runs the computation returned by f v.

val (>>|) : (Json.t -> 'a) -> ('a -> 'b) -> Json.t -> 'b

t >>| f is t >>= (fun a -> return (f a)).

OCaml

Innovation. Community. Security.