The array to search.
The pattern to search for.
The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type.
True if an element equivalent to needle is found, false if not.
auto buffer = createBuffer("abc"); test( contains(buffer, "a")); test(!contains(buffer, "d"));
test( contains("abc", 'a')); test(!contains("abc", 'd'));
test( contains("abc", "a")); test(!contains("abc", "d"));
auto buffer = createBuffer("abc"); test( contains(buffer, 'a')); test(!contains(buffer, 'd'));
Performs a linear scan of haystack from [0 .. haystack.length$(RP), returning true if an element matching needle is found. Comparisons will be performed using the supplied predicate or '==' if none is supplied.