Handbook
Glossary
query ( begin suffix-array -- matches )
Suffix arrays
Prev:
SA{
Vocabulary
suffix-arrays
Inputs
begin
a
sequence
suffix-array
a suffix-array
Outputs
matches
an
array
Word description
Returns a sequence of sequences from the suffix-array that contain the input sequence. An empty array is returned when there are no matches.
Definition
USING:
kernel
suffix-arrays.private
;
IN:
suffix-arrays
:
query
( begin suffix-array -- matches )
[
find-index
]
2keep
[
(query)
]
2curry
[
{
}
]
if*
;