Searching for a T in a T[]

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jun 22 01:04:34 PDT 2016


Is there now algorithm (similar to `canFind`) that can search for 
a `T` in a `T[]`? Existing `canFind` only supports sub-sequence 
needles.

I'm aware of `std.string.indexOf` but that's only for strings.


More information about the Digitalmars-d-learn mailing list