package containers
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A modular, clean and powerful extension of the OCaml standard library
Install
dune-project
Dependency
Authors
Maintainers
Sources
containers-3.18.tbz
sha256=52eeff91ce42b52305e6aaa8a58b88ce8f0a5a984199e59ca7e2fd9ebabe61d7
sha512=dc7337e6cbc9850542c7c9228d3bcb4e4add57a55e2a2992f21fb4761b3e10a68ef1d57ca37a7f5b303fc875fe3df5ecb69dbf2930bfcd1561ce03f7ae83e24b
doc/containers.pvec/Containers_pvec/index.html
Module Containers_pvecSource
Functional Vectors.
These are trees with a large branching factor for logarithmic operations with a low multiplicative factor.
status: experimental
Like pop_opt but doesn't return the last element. Returns the same vector if it's empty.
Iterate on elements with their index, in increasing order.
Iterate on elements with their index, but starting from the end.
append a b adds all elements of b at the end of a. This is at least linear in the length of b.
A basic, fairly slow flat_map operation like CCList.flat_map. It exists for convenience but is not where this data structure shines.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>