package choice

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a t
val return : 'a -> 'a t
val of_list : 'a list -> 'a t
val from_fun : (unit -> 'a option) -> 'a t
val delay : (unit -> 'a t) -> 'a t
val fail : 'a t
val mplus : 'a t -> 'a t -> 'a t
val bind : 'a t -> ('a -> 'b t) -> 'b t
val interleave : 'a t -> 'a t -> 'a t
val fair_bind : 'a t -> ('a -> 'b t) -> 'b t
val ite : 'a t -> ('a -> 'b t) -> 'b t -> 'b t
val map : 'a t -> ('a -> 'b) -> 'b t
val product : 'a t -> 'b t -> ('a * 'b) t
val fmap : 'a t -> ('a -> 'b option) -> 'b t
val filter : 'a t -> ('a -> bool) -> 'a t
val once : 'a t -> 'a t
val take : int -> 'a t -> 'a t
val run_one : 'a t -> 'a option
val run_n : int -> 'a t -> 'a list
val run_all : 'a t -> 'a list
val iter : 'a t -> ('a -> bool) -> unit
val lift : ('a -> 'b) -> 'a t -> 'b t
val lift2 : ('a -> 'b -> 'c) -> 'a t -> 'b t -> 'c t
val liftFair : ('a -> 'b) -> 'a t -> 'b t
val liftFair2 : ('a -> 'b -> 'c) -> 'a t -> 'b t -> 'c t
module Infix : sig ... end
OCaml

Innovation. Community. Security.