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


6.17.3 Type of immutable pair objects

Core Type: <ipair>
Parent Type: <struct>

Type of immutable pair objects.

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

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

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

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

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

The equality predicate is equal?.

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

The hash function is ipair-hash.

Methods: accessors

Method on <ipair>: <top> car this

Apply icar to the type instance.

Method on <ipair>: <top> cdr this

Apply icdr to the type instance.