Next: , Up: built-in lists   [Contents][Index]


6.16.1 Base type of list objects

Core Type: <list>
Parent Type: <top>

Type of lists, whatever their structure. The fact that a list structure is non–empty, non–circular, proper or improper must be checked at run–time.

Constructor on <list>: <list> type-constructor obj

The constructor is list. Return a new list having the given obj arguments as items.

Type predicate on <list>: <list> type-predicate obj

The type predicate is list?. Return #t if obj is null or a proper list object; otherwise return #f.

Equality predicate on <list>: <boolean> equality-predicate this

The equality predicate is equal?.

Hash function on <list>: <non-negative-fixnum> hash-function this

The hash function is list-hash.

Methods: predicates

Method on <list>: <boolean> circular? this

Apply circular-list? to the argument and return its return value.

Method on <list>: <boolean> single-item? this

Apply list-of-single-item? to the argument and return its return value.

Methods: constructors

Method on <list>: <list> append this {L <list>} …

Apply append to the arguments and return its return value.

Method on <list>: <list> reverse this

Apply reverse to the arguments and return its return value.