package metapp
Indexed accumulator to build an array.
val empty : 'a t
The empty accumulator.
add v a
returns (i, a')
where a'
is the accumulator a
followed by the value v
. i
is the index of v
in a'
(and is equal to the length of a
).
val length : 'a t -> int
length a
returns the length of the accumulator a
(the number of elements).
val to_array : 'a t -> 'a array
to_array a
returns the array containing all the elements of a
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>