Next: , Previous: , Up: Associative Maps   [Contents][Index]


11.8.6 Amap contents

procedure: amap-size amap

Returns the number of associations in amap as an exact integer.

procedure: amap-keys amap

Returns a newly allocated list of all the keys in amap.

procedure: amap-values amap

Returns a newly allocated list of all the values in amap.

procedure: amap-entries amap

Returns two values, a newly allocated list of all the keys in amap and a newly allocated list of all the values in amap in the corresponding order.

procedure: amap-find procedure amap fail

For each association of amap, invoke procedure on its key and value. If procedure returns true, then amap-find returns what procedure returns. If all the calls to procedure return #f, returns the result of invoking the thunk fail.

procedure: amap-count predicate amap

For each association of amap, invoke predicate on its key and value. Returns the number of calls to predicate that returned true.