chickadee » persistent-hash-map » map-add!

(map-add! map key value [key value ...])procedure

Adds the given key value pairs to map and returns it.

Example:

(define m (map->transient-map (persistent-map)))

(for-each
 (lambda (k v) (map-add! m k v))
 '(foo bar)
 '(1 2))

(persist-map! m)
=> #<persistent-hash-map (bar . 2) (foo . 1)>