So, first, why is Enumerate considered stateful even when used on an object that should let Enumerate be stateless (like an array)? Is there a simple way to get this behavior? If not, should there be some kind of transducer for accessing both the keys and values of an array/dictionary, like KeyVal, that is stateless?
A bit of a weird one:
So, first, why is
Enumerate
considered stateful even when used on an object that should letEnumerate
be stateless (like an array)? Is there a simple way to get this behavior? If not, should there be some kind of transducer for accessing both the keys and values of an array/dictionary, likeKeyVal
, that is stateless?