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")
| object | An instance of <object>. |
| pair | An instance of <pair>. |
| object | An instance of <object>. |