start-all* ( seq subseq -- indices )


Vocabulary
sequences.extras

Inputs
seqa sequence
subseqa sequence


Outputs
indicesa sequence


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

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


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

Definition

: start-all* ( seq subseq -- indices ) 1 (start-all) ; inline