splits list into sublists separated by sequences that match the sequence pattern patt.
inserts rhs at the position of each matched sequence.
inserts rhsi at the position of each patti.
splits into at most n sublists.
Examplesopen allclose all
Basic Examples (3)
Properties & Relations (8)
Use Alternatives to split at any of the sequence subpatterns:
The third argument of SequenceSplit is the count of sublists not considering insertions:
Use SequenceCases instead:
Compare with SplitBy: