key-sequence

Returns a sequence containing the keys of its collection argument.

Although elements may be duplicated in a collection, keys, by their nature, must be unique; two different elements in a collection may not share a common key, even though distinct keys may yield identical elements.

The order in which the keys from collection appear in the key sequence is unspecified if collection is unstable under iteration.  In particular, different calls to key-sequence with the same argument may yield differently ordered key sequences.  If collection is stable under iteration, however, the resulting sequence of keys will be in the natural order for collection.

Exported from

Modifiers

open

Arguments

collectionAn instance of <collection>.

Values

keysAn instance of <sequence> containing the keys of collection.
Returns a sequence containing the keys of its collection argument.
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, aggregate data structures.
The class of collections whose keys are consecutive integers starting from zero.