all

Array-specialization of all with element needle.

@trusted
bool
all
(
T
)
(
scope const T[] haystack
,
scope const T needle
)

Examples

assert("".all('a'));    // matches behaviour of `std.algorithm.searching.any`
assert("aaa".all('a'));
assert(!"aa_".all('a'));

Meta