not

Negates predicate pred.

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

Members

Aliases

not
alias not = .not!(naryFun!pred)
Undocumented in source.

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