Enhancing foreach
Jonathan M Davis
jmdavisProg at gmx.com
Wed Jan 9 19:06:58 PST 2013
On Thursday, January 10, 2013 03:51:34 bearophile wrote:
> My first
> answer is that you probably should use iota more, because it's
> handy in many situations :-)
I use it when I need it, but that's quite rare and almost always in unit
tests. I might operate on ranges of numbers, but if so, they generally come
from somewhere and represent real data of some kind. They're not generated.
Other than needing to generate ranges for testing, I can't remember the last
time that I needed to generate a range of numbers for anything.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list