Does map have a traversal order?

Suppose that in map(f, a1, ...) the function f has side-effects, and a1 etc are ordered collections (eg arrays or similar).

Is map guaranteed to traverse the arguments in the linear-index ordering, or could that theoretically change in a new version of Julia? (I know that it currently does).

2 Likes

it is not guaranteed

Thanks. Is that made explicit anywhere? Or we simply don’t know that it is guaranteed, so it isn’t?

My information is based only on seeing this convo come up a few times on slack, and each time it was said this is not guaranteed :slight_smile:

1 Like