package containers-data
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
A set of advanced datatypes for containers
Install
dune-project
Dependency
Authors
Maintainers
Sources
containers-3.17.tbz
sha256=0f70824867269c02bf01ae12206aa47a6f669d69f1954c19e68ece9f444f1cba
sha512=11de2d7b7173659e6b83c487ac116a93d4b780b86da07386e7604f8fd45f6841e93cba59dba59ed7dbf6e1bc26561202ae1d2e7238a12f588dfd557d4f2da589
doc/containers-data/CCRAL/index.html
Module CCRALSource
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)).
get_and_remove_exn l i accesses and removes the i-th element of l.
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