Should this work?

Dicebot public at dicebot.lv
Thu Jan 9 09:54:03 PST 2014


On Thursday, 9 January 2014 at 17:39:00 UTC, Adam D. Ruppe wrote:
> On Thursday, 9 January 2014 at 14:08:02 UTC, Manu wrote:
>>  string y = find(retro("Hello"), 'H');
>
> import std.string;
> auto idx = lastIndexOf("Hello", 'H');
>
> Wow, that's unbelievable difficult. D sucks.

It is not the same thing as sample with byGrapheme though.


More information about the Digitalmars-d mailing list