Grigory Shepelev on Nostr: While working my personal project I coudn't find any simple way to compare ...
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
#guile #scheme
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
#guile #scheme