wasmerio / wai

A language binding generator for `wai` (a precursor to WebAssembly interface types)
Apache License 2.0
114 stars 13 forks source link

Add support for hashmaps #40

Open Michael-F-Bryan opened 1 year ago

Michael-F-Bryan commented 1 year ago

Dictionaries are used all over the place in code, so it's be nice to have some sort of hashmap<K, V> primitive that people can use.

Under the hood, the most efficient way to transfer it would be as a tuple<list<K>, list<V>> that gets turned back into a HashMap before being given to the user.