Handbook
Glossary
z-values ( seq -- Z )
Vocabulary
z-algorithm
Inputs
seq
a
sequence
Outputs
Z
an
array
Word description
Outputs an array of the same length as
seq
, containing Z-values for given sequence. See
Z algorithm
for details.
Definition
USING:
sequences
z-algorithm.private
;
IN:
z-algorithm
:
z-values
( seq -- Z )
[
{
}
]
[
(z-values)
]
if-empty
;