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


6.17.1 Type of pair objects

Core Type: <pair>
Parent Type: <top>

Type of pair objects.

Constructor on <pair>: <pair> type-constructor A D

The constructor is cons. Return a new pair having A and D as car and cdr.

Type predicate on <pair>: <boolean> type-predicate obj

The type predicate is pair?. Return #t if obj is a pair object; otherwise return #f.

Equality predicate on <pair>: <boolean> equality-predicate this {P <pair>}

The equality predicate is equal?.

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

The hash function is pair-hash.

Methods: accessors

Method on <pair>: <top> car this

Apply car to the type instance.

Method on <pair>: <top> cdr this

Apply cdr to the type instance.