lispdoc - results for subseq |
(subseq sequence start &optional end) | Function: Return a copy of a subsequence of SEQUENCE starting with element number START and continuing to the end of SEQUENCE or the optional END.
|
Example:(defun upto-null (string) (subseq string 0 (position +null+ string))) | Mentioned in: CLtL2 - 14. Sequences CLtL2 - 14.1. Simple Sequence Functions CLtL2 - 7.2. Generalized Variables HyperSpec - Accessor SUBSEQ On Lisp - Classes and Instances PCL - subsequence manipulations Successful Lisp - chapter13 |
(alexandria.0.dev:ends-with-subseq suffix sequence &key (test #'eql)) | Function: Test whether SEQUENCE ends with SUFFIX. In other words: return true if the last (length SUFFIX) elements of SEQUENCE are equal to SUFFIX.
|
(alexandria.0.dev:starts-with-subseq prefix sequence &rest args &key (return-suffix nil) &allow-other-keys) | Function: Test whether the first elements of SEQUENCE are the same (as per TEST) as the elements of PREFIX. If RETURN-SUFFIX is T the functions returns, as a second value, a displaced array pointing to the sequence after PREFIX.
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| By Bill Moorier |