Go to the first, previous, next, last section, table of contents.


cdr

Function: cdr
file: job.t
package: muf
status: alpha

The cdr function takes a List cell as argument, and returns the contents of the cdr field:

Stack:
"a" "d" cons
Stack: <cons>
cdr
Stack: "d"

This function is usually pronounced "could'er".

Modern languages often use more logical names like tail or rest for this function.

Historical note: cdr stands for "Contents of Decrement Register", referring to the machine instruction used to implement this in the first Lisp, on an IBM 704 at MIT in the late 1950s.)


Go to the first, previous, next, last section, table of contents.