This Web
Other Webs
Schematics
Scheme Links
hash-table-copy!
;; hash-table-copy! : hash-table hash-table -> void (define (hash-table-copy! source target) (hash-table-for-each source (lambda (key value) (hash-table-put! target key value))))
write-hash-table
> (define new-hash-table (make-hash-table)) > (hash-table-copy! (make-immutable-hash-table '((a . 1) (b . 2))) new-hash-table) > (write-hash-table new-hash-table (current-output-port)) #hasheq((b . 2) (a . 1))