package melange

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

Utility functions on null

Provides functionality for dealing with the 'a Js.null type

type +'a t = 'a Js.null
val toOption : 'a t -> 'a option
val return : 'a -> 'a t
val empty : 'a t
val getUnsafe : 'a t -> 'a
module Exn : sig ... end
val getExn : 'a t -> 'a
val map : f:('a -> 'b) Js.Fn.arity1 -> 'a t -> 'b t
val bind : f:('a -> 'b t) Js.Fn.arity1 -> 'a t -> 'b t
val iter : f:('a -> unit) Js.Fn.arity1 -> 'a t -> unit
val fromOption : 'a option -> 'a t
OCaml

Innovation. Community. Security.