Looks like R5RS language in DrScheme does not come with hashtable library..
when I run (make-hash-table) it throws an error...
Pretty Big has support for hashtable but does not support mutable pairs..
so I am stuck making one of them work for me ..
How do I add support for hashtable in R5RS?
thanks
I wasn't sure of how to do this either, but found how to import a module in r5rs:
(#%require scheme)
then...
(define h (make-hash))
etc...
If you don't care about what "language" you use, you might just use R6RS. Here is how to get what you want in R6RS:
#!r6rs
(import (rnrs)
(rnrs mutable-pairs))
(define foo (make-eqv-hashtable))
(define bar (list 'a 'b))
(write bar) (newline)
(set-car! bar 'Z)
(write bar)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.