![[LISPWORKS]](/image.pl?url=http%3a%2f%2fwww.lispworks.com%2fdocumentation%2fHyperSpec%2fBody%2f..%2fGraphics%2fLWSmall.gif&f=jpg&w=240)
![[Common Lisp HyperSpec (TM)]](/image.pl?url=http%3a%2f%2fwww.lispworks.com%2fdocumentation%2fHyperSpec%2fBody%2f..%2fGraphics%2fCLHS_Sm.gif&f=jpg&w=240)
Asequence is an ordered collection ofelements, implemented as either avector or alist.
Sequences can be created by thefunctionmake-sequence, as well as otherfunctions that createobjects oftypes that aresubtypes ofsequence (e.g.,list,make-list,mapcar, andvector).
Asequence function is afunction defined by this specification or added as an extension by theimplementation that operates on one or moresequences. Whenever asequence function must construct and return a newvector, it always returns asimple vector. Similarly, anystrings constructed will besimple strings.
Figure 17-1. Standardized Sequence Functionsconcatenatelengthremovecopy-seqmapremove-duplicatescountmap-intoremove-ifcount-ifmergeremove-if-notcount-if-notmismatchreplacedeletenotanyreversedelete-duplicatesnoteverysearchdelete-ifnreversesomedelete-if-notnsubstitutesorteltnsubstitute-ifstable-sorteverynsubstitute-if-notsubseqfillpositionsubstitutefindposition-ifsubstitute-iffind-ifposition-if-notsubstitute-if-notfind-if-notreduce
17.1.1 General Restrictions on Parameters that must be Sequences