Table lookups - this is pretty definitive

Walter Bright newshound2 at digitalmars.com
Tue Apr 1 16:17:44 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;
>

Incorporated your idea:

https://github.com/facebook/warp/pull/5/files


More information about the Digitalmars-d mailing list