how to do iota(0,256) with ubytes ? (cf need for iotaInclusive)
Jacques Müller via Digitalmars-d
digitalmars-d at puremagic.com
Mon Oct 12 14:52:13 PDT 2015
On Monday, 12 October 2015 at 20:51:40 UTC, Nordlöw wrote:
> On Monday, 12 October 2015 at 20:39:11 UTC, Andrei Alexandrescu
> wrote:
>>> Alexandrescu wrote:
>>>> We can add iota!T() with no arguments that spans the entire
>>>> range of T
>>>> (integral). -- Andrei
>
> From a quick glance I couldn't find a way to reuse the existing
> overloads. Can anybody come with a reusing solution?
Wouldn't it be enough changing the overload
auto iota(E)(E end)
to
auto iota(E)(E end = E.max)
?
More information about the Digitalmars-d
mailing list