package apero-core

  1. Overview
  2. Docs
val bind : 'a option -> ('a -> 'b option) -> 'b option
val map : 'a option -> ('a -> 'b) -> 'b option
val return : 'a -> 'a option
val zero : unit -> 'a option
val is_some : 'a option -> bool
val get : 'a option -> 'a
val get_or_else : 'a option -> (unit -> 'a) -> 'a
val get_or_default : 'a option -> 'a -> 'a
val or_else : 'a option -> (unit -> 'a option) -> 'a option
val flatten : 'a option list -> 'a list option
val iter : 'a option -> ('a -> unit) -> unit
val lift : ('a -> 'b) -> 'a option -> 'b option
val lift2 : ('a -> 'b -> 'c) -> 'a option -> 'b option -> 'c option
module Infix : sig ... end
OCaml

Innovation. Community. Security.