[racket] hash->immutable-hash

From: John Griffin (griffinish at gmail.com)
Date: Sun Jul 1 09:13:07 EDT 2012

In the same style of bytes->immutable-bytes, vector->immutable-vector,  a
conversion hash->immutable-hash would be convenient and I assume just

(define (hash->immutable-hash h)
   (make-immutable-hash (hash->list h)))

Thanks,
John Griffin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120701/f8297173/attachment.html>

Posted on the users mailing list.