Returns a list of subsequences of a sequence, split at specified separator elements.
split-sequence separator-bag sequence &key start end test key coalesce-separators => sequences
Bounding index designators for sequence.
A function designator.
A function designator or
A generalized boolean.
A list of sequences.
split-sequence returns a list of subsequences of sequence (between start and end), split when an element in the sequence separator-bag is found. The structure of sequence is not changed and the elements matching separator-bag are not included in the resulting sequences.
The function test, which defaults to
eql, is used to compare the elements of sequence and the elements of separator-bag.
If true, the function key, is applied to the elements of sequence before test is called.
If coalesce-separators is true, then empty sequences are removed.
LispWorks User Guide and Reference Manual - 13 Feb 2015