SequenceCases¶
Find matching subsequences in a list.
$ wo 'SequenceCases[x, y]'
SequenceCases::list: List expected at position 1 in SequenceCases[x, y].
SequenceCases[x, y]
The name : pattern :> body binding form lets the right-hand side reference
the matched sub-list: