how to do iota(0,256) with ubytes ? (cf need for iotaInclusive)

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 12 13:41:40 PDT 2015


On 10/12/15 10:55 PM, Timothee Cour via Digitalmars-d wrote:
> that's only a partial fix:
> I also would like to express:
>
> iotaInclusive(1,256)

iota!ubyte.drop(1)

> iotaInclusive(1,256,3)

iota!ubyte.drop(1).stride(3)

Just playing devil's advocate.


Andrei



More information about the Digitalmars-d mailing list