Add tag util module.
This commit is contained in:
parent
41080d06c7
commit
79aab17731
3 changed files with 78 additions and 21 deletions
|
@ -53,24 +53,11 @@
|
|||
|
||||
(import scheme
|
||||
(chicken base)
|
||||
(chicken string)
|
||||
(chicken random)
|
||||
testing)
|
||||
testing
|
||||
util-tag)
|
||||
|
||||
;; Tag used for identifying list sets from this module
|
||||
(define TAG-LSET
|
||||
(string-intersperse
|
||||
(cons "LSET-"
|
||||
(map (lambda (n)
|
||||
(substring
|
||||
(number->string
|
||||
(+ 256 (char->integer n))
|
||||
16)
|
||||
1))
|
||||
(string->list
|
||||
(random-bytes
|
||||
(make-string 8)))))
|
||||
""))
|
||||
(define TAG-LSET (make-tag LSET))
|
||||
|
||||
;; Creates new list set using given equality procedure
|
||||
(define (make-lset . equality?)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue