package core
Industrial strength alternative to OCaml's standard library
Install
Dune Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=b0e23c1b1049e48cbbaa596d49927c66e6026506031bd7f5b485af6e9475b4e3
doc/src/core.heap_block/heap_block.ml.html
Source file heap_block.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
open! Base type 'a t = 'a [@@deriving sexp_of] external is_heap_block : Stdlib.Obj.t -> bool = "core_heap_block_is_heap_block" [@@noalloc] let is_ok v = is_heap_block (Stdlib.Obj.repr v) let create v = if is_ok v then Some v else None let create_exn v = if is_ok v then v else failwith "Heap_block.create_exn called with non heap block" ;; let value t = t let bytes_per_word = Word_size.(num_bits word_size) / 8 let bytes (type a) (t : a t) = (Stdlib.Obj.size (Stdlib.Obj.repr (t : a t)) + 1) * bytes_per_word ;;
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>