Add tag util module.

This commit is contained in:
Dominik Pantůček 2023-04-08 19:12:42 +02:00
parent 41080d06c7
commit 79aab17731
3 changed files with 78 additions and 21 deletions

View file

@ -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?)