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/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