package ocaml-compiler
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Official release of OCaml 5.5.1
Install
dune-project
Dependency
Authors
Maintainers
Sources
ocaml-5.5.1.tar.gz
sha256=ae47728d0a876665ccc7b745e3a8d8c9ca5ba63c4f7a11d4db6cdbd1dbeef4bb
doc/stdlib/Stdlib/Type/index.html
Module Stdlib.TypeSource
Type introspection.
Type equality witness
The purpose of eq is to represent type equalities that may not otherwise be known by the type checker (e.g. because they may depend on dynamic data).
A value of type (a, b) eq represents the fact that types a and b are equal.
If one has a value eq : (a, b) eq that proves types a and b are equal, one can use it to convert a value of type a to a value of type b by pattern matching on Equal:
let cast (type a) (type b) (Equal : (a, b) Type.eq) (a : a) : b = aAt runtime, this function simply returns its second argument unchanged.
Type identifiers
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page