package linol
LSP server library
Install
Dune Dependency
Authors
Maintainers
Sources
linol-0.10.tbz
sha256=174bb8cad5b8b0c260d62b0a85da13c4f5caba4fcee042ee58284b09de7896ea
sha512=77460788407c72a33fbe289ec9c78421117543594b3524a5c8fe836f0e272c5ceb1e1074b91c1d1f476f89b75b6f63847a8021675a782ff36457c9626121a7f4
doc/linol.lsp/Linol_lsp/Array_view/index.html
Module Linol_lsp.Array_view
Source
make arr ~pos ~len
can be thought of a new array for which the 0-th element is arr.(pos)
and has length len
if specified. If len
is omitted, Array.length arr - pos
is taken as the length. Importantly, the "new array" does not copy but simply references arr
. Hence, creating views is constant time. However, keep in mind that since a view references an array, the array will be alive in memory as long as the view is alive.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>