Amap predicates (MIT/GNU Scheme 11.2)

Next: Amap accessors, Previous: Amap constructors, Up: Associative Maps [Contents][Index]

#### 11.8.2 Amap predicates

procedure: amap? object

  True iff object is an associative map.

procedure: amap-contains? amap key

  True iff amap contains an association for key.

procedure: amap-empty? amap

  True iff amap has no associations.

procedure: amap=? value-comparator amap1 amap2

  True iff the associations in amap1 are the same as the associations in amap2. This means that amap1 and amap2 have the same keys (in the sense of their shared equality predicate), and that for each key they have the same value (in the sense of value-comparator).

procedure: amap-mutable? amap

  True iff amap is mutable.