Handbook
Glossary
subseq-start-from ( subseq seq n -- i/f )
Factor handbook
»
The language
»
Collections
»
Sequence operations
»
Searching sequences
Prev:
subseq-start ( subseq seq -- i/f )
Next:
subseq-index ( seq subseq -- i/f )
Vocabulary
sequences
Inputs
subseq
an
object
seq
a
sequence
n
an
integer
Outputs
i/f
an
integer
or
f
Word description
Outputs the start index of the first contiguous subsequence equal to
subseq
, starting the search from the
n
th element. If no matching subsequence is found, outputs
f
.
Definition
USING:
kernel
;
IN:
sequences
:
subseq-start-from
( subseq seq n -- i/f )
spin
subseq-index-from
;
deprecated
inline