All Manuals > LispWorks® User Guide and Reference Manual > 33 The COMMON-LISP Package

make-sequence Function

Summary

Extends the function make-sequence to allow it to take any type specifier.

Package

common-lisp

Signature

make-sequence result-type size &key initial-element => sequence

Arguments
result-type
A type specifier.
size
A non-negative integer.
initial-element
An object.
Values
sequence
A sequence.
Description

The function make-sequence has been extended to make a sequence of any Common Lisp type. sequence will be of type result-type unless this is not possible, in which case a type-error is signaled.

size and initial-element are used as specified by ANSI Common Lisp.

See also

make-sequence in the Common Lisp HyperSpec
concatenate
map
merge


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:30