Handbook
Glossary
suffixes ( string -- suffixes-seq )
Vocabulary
suffix-arrays
.
private
Inputs
string
a
string
Outputs
suffixes-seq
a sequence of slices
Word description
Returns a sequence of tail slices of the input string.
Definition
USING:
kernel
sequences
;
IN:
suffix-arrays.private
:
suffixes
( string -- suffixes-seq )
dup
length
<iota>
[
tail-slice
]
with
map
;