blob: e6c9b8d5613b334846234d96bef5b2fb48eb86c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
(define-library
(dictionaries)
(import (scheme base)
(scheme case-lambda)
(srfi 1))
(cond-expand
(kawa (import (srfi 69 basic-hash-tables)))
(guile (import (srfi srfi-69)))
((library (srfi 69)) (import (srfi 69)))
(else))
(cond-expand
(guile)
((library (srfi 125)) (import (srfi 125)))
(else))
(cond-expand
(guile)
((library (srfi 126)) (import (srfi 126)))
(else))
(export
;; predicates
dictionary?
dict-empty?
dict-contains?
;; lookup
dict-ref
dict-ref/default
;; mutation
dict-set!
dict-adjoin!
dict-delete!
dict-delete-all!
dict-replace!
dict-intern!
dict-update!
dict-update/default!
dict-pop!
dict-map!
dict-filter!
dict-remove!
dict-search!
;; whole dictionary
dict-size
dict-for-each
dict-count
dict-any
dict-every
dict-keys
dict-values
dict-entries
dict-fold
dict-map->list
dict->alist
;; registering dictionary types
register-dictionary!)
(include "dictionaries-impl.scm"))
|