subseq-start-from ( subseq seq n -- i )
Factor handbook > The language > Collections > Sequence operations > Searching sequences

Prev:subseq-start ( subseq seq -- i )
Next:find ( ... seq quot: ( ... elt -- ... ? ) -- ... i elt )


Vocabulary
sequences

Inputs and outputs
subseqa sequence
seqa sequence
na start index
ia start index


Word description
Outputs the start index of the first contiguous subsequence equal to subseq, starting the search from the nth element. If no matching subsequence is found, outputs f.

Definition