not

Negates predicate pred.

template not(alias pred)
not
(
T...
)
(
auto ref T args
)

Parameters

pred

A string or a callable

Return Value

A function which calls pred and returns the logical negation of its return value.

Examples

import std.algorithm.searching : find;
import std.uni : isWhite;
string a = "   Hello, world!";
assert(find!(not!isWhite)(a) == "Hello, world!");

Meta