Qurak

SequenceCount

Available

Counts non-overlapping occurrences of a sub-sequence inside a list.

SequenceCount[list, sub]
SequenceCount[list, patt]
SequenceCount[{1, 2, 3, 1, 2, 3}, {1, 2}] → 2SequenceCount[{1, 2, a, b, 3, c, d, 4, e, f, g}, {__Symbol}] → 3

Topics

Related

All 6300 functions · Use this from an MCP client