Why D have two function contains and canFind?

Cym13 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 24 12:53:34 PDT 2017


On Monday, 24 July 2017 at 18:31:09 UTC, Ali Çehreli wrote:
> On 07/24/2017 11:19 AM, Suliman wrote:
> > [...]
> only
> > [...]
>
> std.algorithm.canFind and std.range.SortedRange.contains:
>
> [...]

I'm gessing this predates design by introspection as it would be 
cleaner to let the compiler do the switch itself.


More information about the Digitalmars-d-learn mailing list