Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: svg->browser , Previous: stream-p , Up: S , Home: Overview

Clamps Dictionary

subseqx

Function

(subseqx seq start &optional end)

Like #'subseq, but allowing negative values for end, indicating the number of elems at the end of seq to be omitted.

Arguments

seq A Common Lisp Sequence.
start Non Negative Integer denoting starting index of seq.
end Integer denoting last element's position in seq. If positive, the last element is (elt seq (1- end)). If end is negative, (abs end) denotes the number of elements to be omitted from the end of seq.

Examples

(subseqx '(a b c d e f g) 0 3) ; => (a b c)

(subseqx '(a b c d e f g) 0 -2) ; => (a b c d e)

Author: Orm Finnendahl

Created: 2025-02-18 Di 12:58

Validate