Cyclone Scheme
0.28.0
|
The pair (cons) type. More...
#include <types.h>
Data Fields | |
gc_header_type | hdr |
object | pair_car |
object | pair_cdr |
tag_type | tag |
The pair (cons) type.
Contrary to popular belief, Scheme does not actually have a list type.
Instead there is a pair object composed two objects, the car
and cdr
. A list can be created by storing values in the car
and a pointer to the rest of the list in cdr
. A NULL
in the cdr
indicates the end of a list.