split-sequence separator-bag sequence &key start end test key coalesce-separators => sequences
A sequence.
A sequence.
Bounding index designators for sequence .
A function designator.
A function designator or
nil
.
The function
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 - 21 Dec 2011