Why do the same work about 'IndexOfAny' and 'indexOf' function?
FrankLike via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jan 8 23:10:14 PST 2015
On Thursday, 8 January 2015 at 15:15:59 UTC, Robert burner
Schadek wrote:
>
> use canFind like such:
> bool a = canFind(strs,s) >= 1;
>
> let the compiler figger out what the types of the parameter are.
canFind is work for such as :
bool x = canFind(["exe","lib","a","dll"],"a" );
but can't work for canFind(["exe","lib","a","dll"],"hello.lib");
So I very want to let the function 'indexOfAny' do the same work.
Thank you.
Frank
More information about the Digitalmars-d-learn
mailing list