A common trait to the suffix tree and navigating snakes.
A common trait to the suffix tree and navigating snakes.
Since they are backed by a collection.mutable.Buffer
, most operations
exposed here use the buffer terminology.
the element type of the tree/snake
A Snake
represents a sliding window over a context tree's corpus.
Creates a context tree populated with the given elements.
Creates a context tree populated with the given elements.
the element type
the elements to add in their original order
Creates a new empty context tree for a given element type.
Creates a new empty context tree for a given element type.
Elements can then be added using +=
, append
, or appendAll
.
the element type