12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- ;;; Copyright 2015 William D Clinger.
- ;;;
- ;;; Permission to copy this software, in whole or in part, to use this
- ;;; software for any lawful purpose, and to redistribute this software
- ;;; is granted subject to the restriction that all copies made of this
- ;;; software must include this copyright and permission notice in full.
- ;;;
- ;;; I also request that you send me a copy of any improvements that you
- ;;; make to this software so that they may be incorporated within it to
- ;;; the benefit of the Scheme community.
- ;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- (define-library (srfi 125)
- (export
- make-hash-table
- hash-table
- hash-table-unfold
- alist->hash-table
- hash-table?
- hash-table-contains?
- hash-table-empty?
- hash-table=?
- hash-table-mutable?
- hash-table-ref
- hash-table-ref/default
- hash-table-set!
- hash-table-delete!
- hash-table-intern!
- hash-table-update!
- hash-table-update!/default
- hash-table-pop!
- hash-table-clear!
- hash-table-size
- hash-table-keys
- hash-table-values
- hash-table-entries
- hash-table-find
- hash-table-count
- hash-table-map
- hash-table-for-each
- hash-table-map!
- hash-table-map->list
- hash-table-fold
- hash-table-prune!
- hash-table-copy
- hash-table-empty-copy
- hash-table->alist
- hash-table-union!
- hash-table-intersection!
- hash-table-difference!
- hash-table-xor!
- ;; The following procedures are deprecated by SRFI 125:
- (rename deprecated:hash hash)
- (rename deprecated:string-hash string-hash)
- (rename deprecated:string-ci-hash string-ci-hash)
- (rename deprecated:hash-by-identity hash-by-identity)
- (rename deprecated:hash-table-equivalence-function
- hash-table-equivalence-function)
- (rename deprecated:hash-table-hash-function hash-table-hash-function)
- (rename deprecated:hash-table-exists? hash-table-exists?)
- (rename deprecated:hash-table-walk hash-table-walk)
- (rename deprecated:hash-table-merge! hash-table-merge!)
- )
- (import (scheme base)
- (scheme write) ; for warnings about deprecated features
- (srfi 126)
- (except (srfi 128)
- hash-salt ; exported by (srfi 126)
- string-hash ; exported by (srfi 126)
- string-ci-hash ; exported by (srfi 126)
- ))
- (cond-expand
- ((library (scheme char))
- (import (scheme char)))
- (else
- (begin (define string-ci=? string=?))))
- (include "srfi-125/125.body.scm")
- ) ; eof
|