The OpenD Programming Language

not

Negates predicate pred.

template not(alias pred)
static if(!is(typeof(pred) : string) && !needOpCallAlias!pred)
bool
not
(
T...
)
(
auto ref T args
)

Members

Functions

not
bool not(T args)

Examples

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

Meta