std.algorithm.find has several overloads, one of which takes multiple needles. The same is true for std.algorithm.canFind

Quoting from the relevant std.algorithm.find overload docs: "Finds two or more needles into a haystack."

string strs ="hello.exe";
  string[] s =["lib","exe","a","dll"];
  auto a = canFind!(string,string[])(strs,s);
  writeln("a is ",a);
  string strsb ="hello.";
  auto b = canFind!(string,string[])(strsb,s);
  writeln("b is ",b);

Get error:
does not match template declaration canFind(alias pred = "a ==b")

you can test it.

Thank you.

Reply via email to