Why is there no range iteration with index by the language?
jmh530
john.michael.hall at gmail.com
Wed Jun 10 17:33:00 UTC 2020
On Wednesday, 10 June 2020 at 00:53:30 UTC, Seb wrote:
> [snip]
>
> Anyhow, I would be highly in favor of DMD doing this. It's one
> of those many things that I have on my list for D3 or a D fork.
Chapel supports zippered iteration [1]. From the discussion here,
it sounds very much like the implementation is similar to what D
does with tuples. It probably would be pretty trivial with first
class tuples.
[1]
https://chapel-lang.org/docs/language/spec/statements.html#zipper-iteration
More information about the Digitalmars-d-learn
mailing list