June 10, 2020 Re: Why is there no range iteration with index by the language? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Seb | 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 |
Copyright © 1999-2021 by the D Language Foundation