subseq-start ( subseq seq -- i )
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 )


Vocabulary
sequences

Inputs and outputs
subseqa sequence
seqa sequence
ia start index


Word description
Outputs the start index of the first contiguous subsequence equal to subseq, or f if no matching subsequence is found.

Definition