On 4/1/14, Artur Skawina <[email protected]> wrote: > You mention AAs, so you may already realize this, but there is no > need for a mod ctor in the above example: > > immutable bool[256] tab2 = { > bool t[256]; > for (size_t u = 0; u < 0x100; ++u) > t[u] = isIdentifierChar0(cast(ubyte)u); > return t; > }();
Also (untested):
immutable bool[256] tab2 =
iota(0, 0x100)
.map!(i => isIdentifierChar0(cast(ubyte)i))
.array;
