The rfind challenge

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Jan 15 09:57:07 PST 2013


On 1/15/13 2:20 AM, monarch_dodra wrote:
> auto l = cutBefore(a, b); //Gets the part of a that is before b
> auto r = cutAfter(a, b); //Gets the part of a that is after b

I think cutBefore is sufficient. No? Ideas for better names?

Andrei


More information about the Digitalmars-d mailing list