srfi-125.scm 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. ;;; srfi-125.scm -- SRFI 125 - Intermediate hash tables.
  2. ;;; Adapted from srfi-125.sld.
  3. ;; Copyright (C) 2023 Free Software Foundation, Inc.
  4. ;;
  5. ;; This library is free software; you can redistribute it and/or
  6. ;; modify it under the terms of the GNU Lesser General Public
  7. ;; License as published by the Free Software Foundation; either
  8. ;; version 3 of the License, or (at your option) any later version.
  9. ;;
  10. ;; This library is distributed in the hope that it will be useful,
  11. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. ;; Lesser General Public License for more details.
  14. ;;
  15. ;; You should have received a copy of the GNU Lesser General Public
  16. ;; License along with this library; if not, write to the Free Software
  17. ;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  18. (define-module (srfi srfi-125)
  19. #:use-module ((rnrs base) :version (6) #:hide (error))
  20. #:use-module (srfi srfi-126)
  21. #:use-module ((srfi srfi-128) #:hide (hash-salt string-hash string-ci-hash))
  22. #:replace (hash-table? make-hash-table)
  23. #:export (hash-table hash-table-unfold
  24. alist->hash-table
  25. hash-table-contains?
  26. hash-table-empty?
  27. hash-table=?
  28. hash-table-mutable?
  29. hash-table-ref
  30. hash-table-ref/default
  31. hash-table-set!
  32. hash-table-delete!
  33. hash-table-intern!
  34. hash-table-update!
  35. hash-table-update!/default
  36. hash-table-pop!
  37. hash-table-clear!
  38. hash-table-size
  39. hash-table-keys
  40. hash-table-values
  41. hash-table-entries
  42. hash-table-find
  43. hash-table-count
  44. hash-table-map
  45. hash-table-for-each
  46. hash-table-map!
  47. hash-table-map->list
  48. hash-table-fold
  49. hash-table-prune!
  50. hash-table-copy
  51. hash-table-empty-copy
  52. hash-table->alist
  53. hash-table-union!
  54. hash-table-intersection!
  55. hash-table-difference!
  56. hash-table-xor!
  57. ;; The following procedures are deprecated by SRFI 125:
  58. deprecated:hash
  59. deprecated:string-hash
  60. deprecated:string-ci-hash
  61. deprecated:hash-by-identity
  62. deprecated:hash-table-equivalence-function
  63. deprecated:hash-table-hash-function
  64. deprecated:hash-table-exists?
  65. deprecated:hash-table-walk
  66. deprecated:hash-table-merge!))
  67. (include-from-path "srfi/srfi-125/hash-table.scm")