Package: split-sequence
Function split-sequence-if-not
Lambda Listsplit-sequence-if-not (predicate sequence &key count remove-empty-subseqs from-end start end key) ArgumentsReturn ValueReturns a proper list list and an index into the sequence. Details Return a list of subsequences in sequence delimited by items satisfying (complement predicate). If :remove-empty-subseqs is nil, empty subsequences will be included in the result; otherwise they will be discarded. All other keywords work analogously to those for substitute-if-not. In particular, the behaviour of :from-end is possibly different from other versions of this function; :from-end values of nil and t are equivalent unless :count is supplied. The second return value is an index suitable as an argument to subseq into the sequence indicating where processing stopped. | See also |
2012-12-29