copy-sequence

Creates a freshly allocated sequence containing the elements of source between start and end.

define constant hamlet = #("to", "be", "or", "not", "to", "be")
hamlet == copy-sequence (hamlet)
⇒ #f
copy-sequence (hamlet, start: 2, end: 4)
⇒ #("or", "not")

Exported from

Modifiers

open

Arguments

sourceAn instance of <sequence>.
start:An instance of <integer>.  The default is 0.
end:An instance of <integer>.  The default is the size of source.

Values

valA freshly allocated instance of <sequence>.
Summary
Creates a freshly allocated sequence containing the elements of source between start and end.
When applied to a <range>, copy-sequence returns another range, even though the type-for-copy of a range is the <list> class.

Functions

copy-sequence

When applied to a <range>, copy-sequence returns another range, even though the type-for-copy of a range is the <list> class.

The class of arithmetic sequences.
Creates a freshly allocated sequence containing the elements of source between start and end.
Returns an appropriate type for creating mutable copies of its argument.
The class of linked lists.
The common-dylan module.
Whenever possible, we have tried to keep the Dylan module pristine and unextended, preferring to add our extensions to separate modules or libraries.
The class of collections whose keys are consecutive integers starting from zero.
The class of integers.