On Monday, 21 July 2014 at 15:04:14 UTC, TheFlyingFiddle wrote:
template staticIota(size_t s, size_t e, size_t step = 1)
{
    import std.typetuple : TypeTuple;
    static if(s < e)
alias staticIota = TypeTuple!(s, staticIota!(s + step, e, step));
    else
        alias staticIota = TypeTuple!();
}

Edit: Missed the second step.

Reply via email to