package containers
A modular, clean and powerful extension of the OCaml standard library
Install
Dune Dependency
Authors
Maintainers
Sources
v2.8.1.tar.gz
md5=d84e09c5d0abc501aa17cd502e31a038
sha512=8b832f4ada6035e80d81be0cfb7bdffb695ec67d465ed6097a144019e2b8a8f909095e78019c3da2d8181cc3cd730cd48f7519e87d3162442562103b7f36aabb
doc/containers.data/CCImmutArray/index.html
Module CCImmutArray
Source
Immutable Arrays
Purely functional use of arrays. Update is costly, but reads are very fast. Sadly, it is not possible to make this type covariant without using black magic.
Array of values of type 'a. The underlying type really is an array, but it will never be modified.
It should be covariant but OCaml will not accept it.
sub a start len
returns a fresh array of length len, containing the elements from start
to pstart + len - 1
of array a.
Raises Invalid_argument "Array.sub"
if start
and len
do not designate a valid subarray of a; that is, if start < 0, or len < 0, or start + len > Array.length a.
Conversions
Take ownership of the given array. Careful, the array must NOT be modified afterwards!
IO
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page