Amap copying and conversion (MIT/GNU Scheme 12.0.90)

Next: Amaps as sets, Previous: Amap contents, Up: Associative Maps [Contents][Index]

#### 11.8.7 Amap copying and conversion

procedure: amap-copy amap [mutable?] ¶

  Returns a newly allocated associative map with the same properties and associations as amap. If mutable? is given and is true, the new associative map is mutable. Otherwise it is immutable provided that the implementation supports immutable maps.

procedure: amap-empty-copy amap ¶

  Returns a newly allocated mutable associative map with the same properties as amap, but with no associations.

procedure: amap->alist amap ¶

  Returns an alist with the same associations as amap in an unspecified order.