package containers-data
A set of advanced datatypes for containers
Install
Dune Dependency
Authors
Maintainers
Sources
v3.0.1.tar.gz
md5=438a7bbcb789e116eead04c8a59641f0
sha512=b5551a9ebb9500e14482852c9294c9b4cc3df8153ba64b8e4c4de1dacbd0322ebe4a212316b308c94af562a40099c85b89a8415780cf4e2e0e519870f7342c1b
doc/containers-data/CCRAL/index.html
Module CCRAL
Source
Random-Access Lists
This is an OCaml implementation of Okasaki's paper "Purely Functional Random Access Lists". It defines a list-like data structure with O(1) cons/tail operations, and O(log(n)) lookup/modification operations.
This module used to be part of containers.misc
status: stable
List containing elements of type 'a
set l i v
sets the i
-th element of the list to v
. O(log(n))
.
take_drop n l
splits l
into a, b
such that length a = n
if length l >= n
, and such that append a b = l
.
Fold on the list's elements, in reverse order (starting from the tail).
Utils
Conversions
Infix
include module type of Infix
IO
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page