Support numbers, symbols and strings in ldict comparator.
This commit is contained in:
parent
5a1d5ee841
commit
d59e34f2ba
1 changed files with 4 additions and 2 deletions
|
@ -29,8 +29,10 @@
|
||||||
(define (ldict<? a b)
|
(define (ldict<? a b)
|
||||||
(if (number? a)
|
(if (number? a)
|
||||||
(< a b)
|
(< a b)
|
||||||
(string<? (symbol->string a)
|
(if (string? a)
|
||||||
(symbol->string b))))
|
(string<? a b)
|
||||||
|
(string<? (symbol->string a)
|
||||||
|
(symbol->string b)))))
|
||||||
|
|
||||||
(define (make-ldict . equality?/pairs)
|
(define (make-ldict . equality?/pairs)
|
||||||
(let ((equality? (if (or (null? equality?/pairs)
|
(let ((equality? (if (or (null? equality?/pairs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue