Challenge: write a really really small front() for UTF8

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Mar 23 20:59:38 PDT 2014


On 3/23/14, 8:36 PM, safety0ff wrote:
> On Sunday, 23 March 2014 at 21:23:18 UTC, Andrei Alexandrescu wrote:
>> Here's a baseline: http://goo.gl/91vIGc. Destroy!
>>
>> Andrei
>
> Here's my attempt: http://goo.gl/alJ9JS
> I interpreted the challenge slightly differently, I went for fewer lines
> of code and fewer branches.
>
> I verified the output for all valid inputs.

Very interesting! -- Andrei


More information about the Digitalmars-d mailing list