Try replacing with collect(enumerate(A)) instead. Its just that @threads doesn’t work with generic iterables like the output of enumerate, it needs some concrete array-like thing which has a length and firstindex.
8 Likes