faster splitter

Jack Stouffer via Digitalmars-d digitalmars-d at puremagic.com
Mon May 23 07:25:52 PDT 2016


On Monday, 23 May 2016 at 14:17:59 UTC, Andrei Alexandrescu wrote:
> What would be the condition tested in the static if?

I would assume `static if (isBidirectionalRange!Range)`

> Recall that sometimes you do want a forward range even when you 
> could define a bidirectional range. -- Andrei

I honestly can't think of a time when would this be the case. 
What are you losing by having back and popBack defined?


More information about the Digitalmars-d mailing list