package core_kernel
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Industrial strength alternative to OCaml's standard library
Install
dune-project
Dependency
Authors
Maintainers
Sources
core_kernel-v0.13.0.tar.gz
sha256=9c4926888a5facda4f90fd0bbcd903caa3b94c04e1b9de624deb555ec85893ef
md5=0fd05be8bf5eabde5080e3c40b20092b
doc/core_kernel.int_set/Int_set/index.html
Module Int_set
An implementation of compressed integer sets using lists of integer ranges. Operations such as adding and membership are O(n) where n is the number of contiguous ranges in the set. For data that is mostly serial, n should remain very small.
Note that when n gets very large, in addition to poor performance, these operations may throw exceptions since some of the code is not tail-recursive.
val empty : tval to_string : t -> stringadd_range t i j adds all the numbers between i and j (inclusive) to the set. Note that it doesn't matter which order i and j are specified in; either way the effect is the same.
val mem : t -> int -> boolmem t i tests whether i is a member of the set.
val ranges : t -> (int * int) listranges t returns a list of all ranges that make up the set.
val max : t -> int optionval min : t -> int option sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>