On Fri, Oct 13, 2017 at 6:49 PM, Arthur A. Gleckler <xxxxxx@speechcode.com> wrote:
 
I have such an implementation and would be happy to contribute it.  It doesn't have the same API as anything else, but that should be easy to fix.  I haven't optimized it, but its algorithmic complexity should be fine.  It also supports copy-on-write mutation like Clojure's.  There's also an analogous sets implementation.

John asked me to push this to the Git repo, so I have.  I've converted it from MIT Scheme to Chibi Scheme since the latter is an R7RS implementation and is compatible with the other SRFI sample implementations in the repo.  The code includes 559 tests, which can be run with cd srfi/hamt/ && make test.

It doesn't match the SRFI 146 API, but it should be straightforward to convert it to match that API, as far as I can tell.

I hope this is useful.

Regards,


SRFI Editor