package melange

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Provide utilities for option

type 'a t = 'a option
val some : 'a -> 'a option
val isSome : 'a option -> bool
val isSomeValue : ('a -> 'b -> bool) Js__.Js_internal.Fn.arity2 -> 'a -> 'b option -> bool
val isNone : 'a option -> bool
val getExn : 'a option -> 'a
val equal : ('a -> 'b -> bool) Js__.Js_internal.Fn.arity2 -> 'a option -> 'b option -> bool
val andThen : ('a -> 'b option) Js__.Js_internal.Fn.arity1 -> 'a option -> 'b option
val map : ('a -> 'b) Js__.Js_internal.Fn.arity1 -> 'a option -> 'b option
val getWithDefault : 'a -> 'a option -> 'a
val default : 'a -> 'a option -> 'a
val filter : ('a -> bool) Js__.Js_internal.Fn.arity1 -> 'a option -> 'a option
val firstSome : 'a option -> 'a option -> 'a option
OCaml

Innovation. Community. Security.