last

Returns the last element of sequence.

If the sequence is empty, then the behavior of last depends on whether it was called with a default argument.  If the default argument was supplied, its value is returned; otherwise, an error is signaled.

last (#("emperor", "of", "china"))
⇒ "china"

Exported from

Modifiers

open

Arguments

sequenceAn instance of <sequence>.
default:An instance of <object>.  The default is #f.

Values

valAn instance of <object>.
Returns the last element of sequence.
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 all Dylan objects.