Currently the helper functions to iterate over "collections" iterate over the property names of an object, not its values. That's how it is in Python as well. I'm wondering if this is expected behavior or surprising. We could also iterate over the property values instead.
Maybe we should even distinguish between iterables with key => value and index => value, i.e. KeyedIterable and IndexIterable.
Currently the helper functions to iterate over "collections" iterate over the property names of an object, not its values. That's how it is in Python as well. I'm wondering if this is expected behavior or surprising. We could also iterate over the property values instead.
Maybe we should even distinguish between iterables with
key => value
andindex => value
, i.e.KeyedIterable
andIndexIterable
.