start-all ( seq subseq -- indices )


Vocabulary
sequences.extras

Inputs
seqa sequence
subseqa sequence


Outputs
indicesa sequence


Word description
Outputs the starting indices of the non-overlapping occurrences of subseq in seq.

Examples
USING: prettyprint sequences.extras ; "ABABA" "ABA" start-all .
{ 0 }

USING: prettyprint sequences.extras ; "ABAABA" "ABA" start-all .
{ 0 3 }


See also
start-all*, count-subseq, count-subseq*

Definition