count-subseq ( seq subseq -- n )


Vocabulary
sequences.extras

Inputs
seqa sequence
subseqa sequence


Outputs
nan integer


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

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


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

Definition