package lemonade

  1. Overview
  2. Docs
type 'a t
type +'a monad
val from : (int -> 'a option monad) -> 'a t
val of_list : 'a list -> 'a t
val of_array : 'a array -> 'a t
val of_string : string -> char t
val to_list : 'a t -> 'a list monad
val to_string : char t -> string monad
val peek : 'a t -> 'a option monad
val npeek : int -> 'a t -> 'a list monad
val get : 'a t -> 'a option monad
val nget : int -> 'a t -> 'a list monad
val get_while : ('a -> bool) -> 'a t -> 'a list monad
val next : 'a t -> 'a monad
val junk : 'a t -> unit monad
val njunk : int -> 'a t -> unit monad
val junk_while : ('a -> bool) -> 'a t -> unit monad
val is_empty : 'a t -> bool monad
val map : ('a -> 'b) -> 'a t -> 'b t
val map_list : ('a -> 'b list) -> 'a t -> 'b t
val filter : ('a -> bool) -> 'a t -> 'a t
val filter_map : ('a -> 'b option) -> 'a t -> 'b t
val fold : ('a -> 'b -> 'b) -> 'a t -> 'b -> 'b monad
val iter : ('a -> unit) -> 'a t -> unit monad
val find : ('a -> bool) -> 'a t -> 'a option monad
val find_map : ('a -> 'b option) -> 'a t -> 'b option monad
val combine : 'a t -> 'b t -> ('a * 'b) t
val append : 'a t -> 'a t -> 'a t
val concat : 'a t t -> 'a t
val flatten : 'a list t -> 'a t
OCaml

Innovation. Community. Security.