Table of Contents

Class LispCons

Namespace
OpenCAD2D.Lisp
Assembly
OpenCAD2D.Core.dll

A cons cell, the pair every list is made of: (1 2 3) is a cell holding 1 whose cdr is the cell holding 2, and so on to nil, and (1 . 2) is a cell whose cdr is the number 2. A cell never changes once made, so a list shared by two variables cannot be altered through one of them.

public sealed class LispCons
Inheritance
LispCons
Inherited Members

Constructors

LispCons(object, object)

Makes a cell.

Properties

Car

What the cell holds, the first item of the list.

Cdr

The rest of the list: another cell, null at the end, or any value for a dotted pair.