Dev.to daily challenge Duplicate Encoder

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Thu Jun 25 01:37:07 UTC 2020


On Wednesday, 24 June 2020 at 19:13:39 UTC, Vladimir Panteleev 
wrote:
> On Wednesday, 24 June 2020 at 17:21:34 UTC, Jesse Phillips 
> wrote:
>> 2. 
>> https://github.com/JesseKPhillips/devto-challenge259-dupencoder
>
> In `duplicateEncode_go`, the code is inconsistent in whether it 
> wants to process the string by code unit or code point. 
> `occurences` [sic] is declared as `int[dchar]`, but later it 
> uses a standard (`char`-wise) `foreach` loop, and the 
> `std.ascii` variant of `toLower`.

Yeah I noticed that too. Really just the first 'make it work' 
thing I did.


More information about the Digitalmars-d mailing list