The rfind challenge

Phil Lavoie maidenphil at hotmail.com
Tue Jan 15 11:24:49 PST 2013


On Tuesday, 15 January 2013 at 19:11:43 UTC, Phil Lavoie wrote:
> It'd be nicer if we could use an operator, but this is wishful 
> thinking:
>
> auto r = r2.jumpTo( d2 ); //r2d2, yes.
> Equivalent to:
> auto r = r2[ d2 .. $ ];
> Or:
> auto r = r2[ d2 ... ];
>
> Again, wishful thinking.

What about startOn instead?

That makes two additional primitives and one additional range 
type( -Bidirectional + Reversible + StartableOn??!?!??!?!?!)


More information about the Digitalmars-d mailing list