chickadee » srfi-116 » icdr

icar ipairprocedure
icdr ipairprocedure

These procedures return the contents of the icar and icdr field of their argument, respectively. Note that it is an error to apply them to the empty ilist.

(icar (iq a b c))       ;=>  a
(icar (iq (a) b c d))   ;=>  (a)
(icar (ipair 1 2))      ;=>  1
(icar '())              ;=>  *error*

(icdr (iq a b c))       ;=>  (b c)
(icdr (iq (a) b c d))   ;=>  (b c d)
(icdr (ipair 1 2))      ;=>  2
(icdr '())              ;=>  *error*