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