count-subseq* ( seq subseq -- n )


Vocabulary
sequences.extras

Inputs
seqa sequence
subseqa sequence


Outputs
nan integer


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

Examples
USING: prettyprint sequences.extras ; "ABABA" "ABA" count-subseq* .
2


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

Definition