Is there no easy or built-in way to dump all keys and/or values of a hash table to a list or assoc list? Lists are easier to use when asserting equality in tests, like test_eq
.
I find iter
, but no map
, which is weird, or?
Alternatively, dump Hashtbl.t to Seq.t and then to assoc list.