Returns a list of subsequences of a sequence, split at elements for which a predicate returns false.
split-sequence-if-not predicate sequence &key start end key coalesce-separators => sequences
A function designator.
A sequence.
Bounding index designators for sequence.
A function designator or nil
.
The function split-sequence-if-not
returns a list of subsequences of sequence (between start and end), split by where the function predicate returns false for an element. The structure of sequence is not changed and the elements identified by the predicate are not included in the resulting sequences.
If non-nil, the function key is applied to the elements of sequence before predicate is called.
If coalesce-separators is true, then empty sequences are omitted from result.
LispWorks User Guide and Reference Manual - 20 Sep 2017