PPT Slide
Rest extracts the remainder of the list, the part after the first element.
( rest ( list ’a ’b ’c ) ) returns ( B C )
( rest ( list ( list ’a ’b ’c ) ) returns ( C )
Rest is the modern name for the function cdr which extracts the cdr (second) field of any dotted pair.
( cdr (cons ’a ’b ) ) returns B.
( cdr (list 1 2 3 ) ) returns ( 2 3 )
( cdr ’( ( a b ) c d e ) ) returns ( C D E )