Table lookups - this is pretty definitive

Walter Bright newshound2 at digitalmars.com
Tue Apr 1 15:21:17 PDT 2014


On 4/1/2014 1:57 PM, Andrej Mitrovic wrote:
> immutable bool[256] tab2 =
>      iota(0, 0x100)
>      .map!(i => isIdentifierChar0(cast(ubyte)i))
>      .array;
>

Yup, that works. Purty nice!


More information about the Digitalmars-d mailing list