package core_kernel
Industrial strength alternative to OCaml's standard library
Install
Dune Dependency
Authors
Maintainers
Sources
core_kernel-v0.15.0.tar.gz
sha256=34a0288f16027c6b90e4ad16cb5cc677d7063d310faf918748ce70f1745116c0
doc/src/core_kernel.univ/univ.ml.html
Source file univ.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
open! Core open! Import module Id = Type_equal.Id module View = struct type t = T : 'a Id.t * 'a -> t end include View let view = Fn.id let create id value = T (id, value) let type_id_name (T (id, _)) = Id.name id let type_id_uid (T (id, _)) = Id.uid id let sexp_of_t (T (id, value)) = Id.to_sexp id value let does_match (T (id1, _)) id2 = Id.same id1 id2 let match_ (type a) (T (id1, value)) (id2 : a Id.t) = match Id.same_witness id1 id2 with | Some Type_equal.T -> Some (value : a) | None -> None ;; let match_exn (type a) (T (id1, value) as t) (id2 : a Id.t) = match Id.same_witness id1 id2 with | Some Type_equal.T -> (value : a) | None -> failwiths ~here:[%here] "Univ.match_exn called with mismatched value and type id" (t, id2) [%sexp_of: t * _ Id.t] ;;
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>