| 1 |
;;; |
| 2 |
;;; SRFI-69 Basic Hash Tables |
| 3 |
;;; |
| 4 |
|
| 5 |
;; This is a compatibitily module. Actual implementation is |
| 6 |
;; in scheme/hash-table.scm. |
| 7 |
|
| 8 |
(define-module srfi.69 |
| 9 |
(use scheme.hash-table) |
| 10 |
(export (rename srfi-69:make-hash-table make-hash-table) |
| 11 |
hash-table? alist->hash-table |
| 12 |
hash-table-equivalence-function hash-table-hash-function |
| 13 |
hash-table-ref hash-table-ref/default |
| 14 |
hash-table-set! hash-table-delete! |
| 15 |
hash-table-exists? hash-table-update! |
| 16 |
hash-table-update!/default |
| 17 |
hash-table-size hash-table-keys hash-table-values |
| 18 |
hash-table-walk hash-table-fold hash-table->alist |
| 19 |
hash-table-copy hash-table-merge! |
| 20 |
hash string-hash string-ci-hash hash-by-identity)) |
| 21 |
(select-module srfi.69) |
| 22 |
|
| 23 |
;; srfi-69's make-hash-table allows to omit equality procedure, |
| 24 |
;; while srfi-125 does not. |
| 25 |
(define srfi-69:make-hash-table |
| 26 |
(case-lambda |
| 27 |
[() (make-hash-table equal?)] |
| 28 |
[args (apply make-hash-table args)])) |