package lambda-term
Terminal manipulation library for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
lambda-term-2.0.3.tbz
sha256=7b5c4b5046bd8fdc8c829dc9f4d07b0826e9c14110963044a54105229d1b2bd8
md5=903b6cc234598d67c7c905dfb5230209
doc/lambda-term/LTerm_dlist/index.html
Module LTerm_dlist
Mutable sequence of elements (deprecated)
A sequence is an object holding a list of elements which support the following operations:
- adding an element to the left or the right in time and space O(1)
- taking an element from the left or the right in time and space O(1)
- removing a previously added element from a sequence in time and space O(1)
- removing an element while the sequence is being transversed.
Operation on nodes
val remove : 'a node -> unit
Removes a node from the sequence it is part of. It does nothing if the node has already been removed.
Operations on sequence
val create : unit -> 'a t
create ()
creates a new empty sequence
Sequence iterators
Note: it is OK to remove a node while traversing a sequence
val iter_l : ('a -> unit) -> 'a t -> unit
iter_l f s
applies f
on all elements of s
starting from the left
val fold_l : ('a -> 'b -> 'b) -> 'a t -> 'b -> 'b
fold_l f s
is:
fold_l f s x = f en (... (f e2 (f e1 x)))
where e1
, e2
, ..., en
are the elements of s
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page