[Issue 10712] Compiletime foreach loop
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 25 03:58:36 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10712
--- Comment #3 from bearophile_hugs at eml.cc 2013-07-25 03:58:35 PDT ---
(In reply to comment #2)
> >>> range(10)
> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>
> Discussing iota(10) is off topic here, but if you want you can explain here or
> in D.learn.
In D the single argument iota allows you to write UFCS chains like:
....reduce!(...).iota....
If you require the zero it breaks the linearity, and the zero is very common:
0.iota(....reduce!(...))....
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list