Cons class

The basic data structure of LISP.

Constructors

Cons([dynamic car, dynamic cdr])
Constructs a cons.
Cons.quasiquote(dynamic datum)
factory
Cons.quote(dynamic datum)
factory
Cons.unquote(dynamic datum)
factory
Cons.unquoteSplicing(dynamic datum)
factory

Properties

car ↔ dynamic
The first object.
getter/setter pair
cdr ↔ dynamic
The second object.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
The head of the cons.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tail Cons?
The tail of the cons, if applicable.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override