tail-setter

Sets the tail of a pair to contain an object and returns the object.  pair is modified by this operation.

define variable x = list (4, 5, 6)
tail (x) := #(9, 8, 7)
⇒ #(9, 8, 7)
x
⇒ #(4, 9, 8, 7)
tail (x) := "dot"
⇒ "dot"
x
⇒ #(4 . "dot")

Exported from

Arguments

objectAn instance of <object>.
pairAn instance of <pair>.

Values

objectAn instance of <object>.
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 all Dylan objects.
The class of lists that can have new values assigned to their heads and tails.