While working my personal project I coudn't find any simple way to compare hash-tables equality even in extrernal libs.
Also hashing the hash-tables (hash ht) is not reliable:
(hash (alist->hash-table `((b . 2) (a . 1)))) ≠ (hash (alist->hash-table `((a . 1) (b . 2))))
So I'm thinking about one for myself. What about this one?
https://gist.github.com/shegeley/fd90526791bf94f825baa0b3e9f4cf3c
@shegeley you want SRFI-125, specifically the "
hash-table=?
" API. SRFI-125 is built-in to MIT Scheme, STkLos, and is available for Chez via this library. For Guile and Gambit you should try installing it from the SRFI website which points to this GitHub repo.