package containers

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type !'a conv = t -> 'a option
val map_opt : ('a -> 'b option) -> 'a list -> 'b list option
val list_any : 'a conv -> t -> 'a option
val list_all : 'a conv -> t -> 'a list
val to_int : int conv
val to_string : string conv
val to_bool : bool conv
val to_float : float conv
val to_list : t list conv
val to_list_with : (t -> 'a option) -> 'a list conv
val to_pair : (t * t) conv
val to_pair_with : 'a conv -> 'b conv -> ('a * 'b) conv
val to_triple : (t * t * t) conv
val to_triple_with : 'a conv -> 'b conv -> 'c conv -> ('a * 'b * 'c) conv
val get_field : string -> t conv
val field : string -> 'a conv -> 'a conv
val get_variant : (string * (t list -> 'a option)) list -> 'a conv
val field_list : string -> (t list -> 'a option) -> 'a conv
val (>>=) : 'a option -> ('a -> 'b option) -> 'b option
val (>|=) : 'a option -> ('a -> 'b) -> 'b option
val return : 'a -> 'a option
val get_exn : 'a option -> 'a
OCaml

Innovation. Community. Security.