The rfind challenge

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Jan 15 14:49:44 PST 2013


On 1/15/13 4:57 PM, monarch_dodra wrote:
> On Tuesday, 15 January 2013 at 20:59:17 UTC, Andrei Alexandrescu wrote:
[snip]
> But the goal was having a range that start at needle, and ends at
> haystackEnd. Your implementation doesn't do that. It would have to use a
> "after" instead of a "before".

Sorry, got ahead of myself. r.retro.before would be needed, which 
requires r.after. I'd like to only add one primitive if at all possible, 
or have a solid proof that two are needed. Back to the drawing board...

Andrei


More information about the Digitalmars-d mailing list