Should this work?

Andrea Fontana nospam at example.com
Fri Jan 24 00:32:26 PST 2014


On Friday, 24 January 2014 at 08:21:12 UTC, Jacob Carlborg wrote:
> Personally I would expect "any" to take a predicate and return 
> "true" if it can find any matching element. If a predicate is 
> not supplied it would behave as the opposite of "empty".

+1

> I would expect "contains" to take a element and check if it 
> exists in the range.

+1

> I think "canFind" is just a weird name.

+1

I also think that contains/canFind/etc ... should get advantage 
of sorted ranges to speed up their searches (now it seems they 
don't!)


More information about the Digitalmars-d mailing list