Searching for Elements in Containers

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Feb 22 05:53:49 PST 2015


Is there some function similar to std.algorithm.find() which 
returns an element index instead of a range? I guess 0 means no 
hit and 1, 2, 3 means hits at indexes 0, 1, 2 etc.

I want this to avoid having to create ranges ([]) when searching 
for a specific element in std.container.Array.


More information about the Digitalmars-d-learn mailing list