Add Iterable for key value pair to HashMap #12766
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
closed-duplicate
Closed in favor of an existing report
This issue was originally filed by @paulevans
HashMap has:
external Iterable<K> get keys;
external Iterable<V> get values;
But does not expose an Iterable for the pairs. It only exposes that via:
external void forEach(void action(K key, V value));
It would be useful to use functions such as fold that can be found on Iterable on the key value pair collection.
The text was updated successfully, but these errors were encountered: