Next: , Previous: , Up: iklib   [Index]


6.24 Immutable pairs

Vicare defines immutable pairs as a built–in disjoint type; only basic functions are implemented by (vicare), the bulk of the utilities is implemented by SRFI-116, in the library (srfi :116), (vicare-libs)SRFI-116 immutable lists.

Notice that syntax-rules and syntax-case patterns do not recognise immutable pairs.

Function: ipair obj1 obj2

Build and return a new immutable pair object, using obj1 as car and obj2 as cdr.

Function: ikpair? obj

Return #t if obj is an immutable pair; otherwise return #f.

Function: icar ipair
Function: icdr ipair

Return the car and cdr of the immutable pair ipair. It is an error if ipair is not an immutable pair.