package miou
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=feb99bbd83a6ff399b5f1aae0907cfd7de5d55503301addde5eb653cc91c38a1
sha512=bb7edc4829cccbba6f52a68ca98ed94d4fa0b5c1aec3fdf956794f6dc9e61d6ea55866845839066e556b8b4eaf71b13f0aeb4983ac27c568505cd6570eb57b31
doc/miou/Miou_sequence/index.html
Module Miou_sequenceSource
Mutable sequence of elements.
Type of a sequence holding values of type 'a.
Type of a node holding one value of type 'a in a sequence.
NOTE: The user can deconstruct a node to avoid indirect access to values, but it is not advisable to modify the fields.
take direction t takes an element of t from the specified direction.
add direction t adds a new element into t to the specified direction.
Removes all nodes from the given sequence. The nodes are not actually mutated to not their removal. Only the sequence's pointers are update.
Returns the number of elements in the given sequence. This is a O(n) operation where n is the number of elements in the sequence.
iter ~f s applies f on all elements of s starting from left.
iter_node ~f s applies f on all nodes of s starting from left.
Removes a node from the sequence it is part of. It does nothing if the node has already been removed.