The last function returns the last pair in a list {list}. The last pair is defined to be the first element of the list whose cdr component is not a pair.


The last function is used to get the last pair in a List.




(last list)

Arguments Name Type Description
Argument:listList A List (of Pairs).


Returns the last Pair.



Here are a number of links to Lambda coding examples which contain this instruction in various use cases.


Argument Types

Here are the links to the data types of the function arguments.

Pair List

Here are also a number of links to functions having arguments with any of these data types.

addMethod append apply associate
boolean c::r car cdr
compareEQ compareGE compareGT compareLE
compareLT compareNE compare compile
copy count delete dimension
display eval integer isAtom
isComplex isDate isEqual isError
isIdentical isInteger isMoney isNumber
isObject isPair isType last
length lisp list macroReplace
makeQuotedList map mapc member
money morph number objectToList
objectToMatrix objectToNumMatrix objectToNumVector objectToVector
offset pair pointer proplist
proprecord putprop quote ref
remProp reverse saveObject setCar
setCdr setLastCdr setq sizeof
sort string type writelg

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE