Why D have two function contains and canFind?

Timon Gehr via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 24 16:52:57 PDT 2017


On 24.07.2017 20:19, Suliman wrote:
> Why D have two function `contains` and `canFind`

`contains` guarantees logarithmic running time, while `canFind` can be 
linear.


More information about the Digitalmars-d-learn mailing list