HELP LASTPAIR                                        John Williams, April 1985

LASTPAIR(l) -> p;

Returns the last *PAIR of the list L. For example:

    lastpair([a b c d e]) =>
    ** [e]

A MISHAP occurs if L is NIL.

LASTPAIR has an *UPDATER, which can be used to change the last pair of a list.
E.g

    vars l;
    [a b c d e] -> l;
    "f" -> lastpair(l);
    l =>
    ** [a b c d|f]

LASTPAIR does not expand "dynamic" lists (see HELP *PDTOLIST). The last pair
of a dynamic list has the generator procedure in its *BACK.

See also:   *LAST
