package containers-data
A set of advanced datatypes for containers
Install
Dune Dependency
Authors
Maintainers
Sources
v3.12.tar.gz
md5=d74226924b65697a8558eb34a6074417
sha512=d5094e362f9ad7fe91aa060ef5c9805812cf888b326f0f0070f929205a83169a64c78dfce58a2ec0da77555b21c69a1f287fb38da9867cd6b16507f6c20fa666
doc/containers-data/CCFQueue/index.html
Module CCFQueue
Source
Functional queues
Basics
Queue containing elements of type 'a
Same as take_front
, but fails on empty queues.
take_front_l n q
takes at most n
elements from the front of q
, and returns them wrapped in a list.
take_back_l n q
removes and returns the last n
elements of q
. The elements are in the order of the queue, that is, the head of the returned list is the first element to appear via take_front
. take_back_l 2 (of_list [1;2;3;4]) = of_list [1;2], [3;4]
.
Individual extraction
Global Operations
Append two queues. Elements from the second one come after elements of the first one. Linear in the size of the second queue.
Conversions
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page