package monadlib

  1. Overview
  2. Docs

Module Monad.LazyListM

include BatInterfaces.Monad with type 'a m = 'a LazyList.t
type 'a m = 'a LazyList.t
val bind : 'a m -> ('a -> 'b m) -> 'b m
val return : 'a -> 'a m
val zero : unit -> 'a m
val lplus : 'a m -> 'a m Lazy.t -> 'a m
val null : 'a m -> bool

null x implies that x is zero. If you do not want to or cannot answer whether a given x is zero, then null x should be false.

OCaml

Innovation. Community. Security.