package monadlib

  1. Overview
  2. Docs

Parameter CollectionWriter.W

include Writer
type t
include BatInterfaces.Monad
type 'a m
val bind : 'a m -> ('a -> 'b m) -> 'b m
val return : 'a -> 'a m
val listen : 'a m -> (t * 'a) m

Listen to the written value.

val run : 'a m -> t * 'a

Run the writer, extracting both outputs.

val write : t -> unit m

Write a value.

val cmp : t -> t -> bool
OCaml

Innovation. Community. Security.