package core_kernel
Industrial strength alternative to OCaml's standard library
Install
Dune Dependency
Authors
Maintainers
Sources
v0.14.1.tar.gz
sha256=1d91a0d58e9a98809eb3bc888ae716e786c68ad5d07a874c37d9c1ef9fd24438
md5=77b25affd5155128ca757d38e496d89f
doc/core_kernel.univ/Univ/index.html
Module Univ
An extensible "universal" variant type.
Every type id (Type_equal.Id.t
) corresponds to one branch of the variant type.
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val type_id_name : t -> string
val type_id_uid : t -> Core_kernel.Type_equal.Id.Uid.t
val create : 'a Core_kernel.Type_equal.Id.t -> 'a -> t
val does_match : t -> _ Core_kernel.Type_equal.Id.t -> bool
does_match t id
returns true
iff t
was created by create id v
.
val match_ : t -> 'a Core_kernel.Type_equal.Id.t -> 'a option
match_ t id
returns Some v
if t
was created by create id v
, and returns None
otherwise.
match_exn t id
returns v
if t
was created by create id v
, and raises otherwise.
val match_exn : t -> 'a Core_kernel.Type_equal.Id.t -> 'a
module View : sig ... end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>