WLJS LogoWLJS Notebook

NoneTrue

NoneTrue[{e1, e2, ...}, test] yields True if test[ei] is False for all elements.

NoneTrue[test] represents an operator form that can be applied to an expression.

Examples

Check if no elements are negative:

NoneTrue[{1, 2, 3, 4}, Negative]
(* True *)

Check if none are strings:

NoneTrue[{1, "a", 3}, StringQ]
(* False *)

Using operator form:

NoneTrue[PrimeQ][{4, 6, 8, 9}]
(* True *)

Please visit the official Wolfram Language Reference for more details.

On this page