The rfind challenge
deadalnix
deadalnix at gmail.com
Tue Jan 15 19:07:55 PST 2013
On Tuesday, 15 January 2013 at 22:49:45 UTC, Andrei Alexandrescu
wrote:
> 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
I think the whole point of reverse is to avoid duplicating
before/after front/back popFront/popBack etc . . .
More information about the Digitalmars-d
mailing list