On Monday, 24 June 2013 at 14:33:48 UTC, bearophile wrote:
Craig Dillabaugh:

  foreach( idx, count; lockstep( iota!ubyte(ubyte.min,
ubyte.max), bins ) )

Also note that doesn't iterate the whole ubyte range. Maybe we need another iota range for that, with a different name or with an optional template argument string like "[]" as std.random.uniform. Opinions welcome.

Bye,
bearophile

Opps.  Of course.

The optional template argument sounds like a good idea.

Any idea why the original wouldn't compile though?

Craig

Reply via email to