NoneTrue
NoneTrue[expr,test,level]
tests parts of expr at level level.
Examples
open allclose allBasic Examples (4)
Check if no element of a list satisfies a condition:
Check if no element of a matrix satisfies a condition:
Check if no value of an association satisfies a condition:
A symbolic result may be returned:
Even when the condition applied to some elements is symbolic, a definitive result may be deduced:
TrueQ may be used to avoid getting a symbolic result:
Scope (3)
Properties & Relations (5)
Compose the predicate with TrueQ to make the predicate stronger:
NoneTrue[list,f] is equivalent to AllTrue[list,Composition[Not,f]]:
NoneTrue[list,f] is equivalent to VectorQ[list,Composition[Not,f]] when f evaluates to True or False:
NoneTrue[list,f] works efficiently on sparse vectors:
NoneTrue[list,test] checks the parts of list in order, stopping as soon as test returns True:
Text
Wolfram Research (2014), NoneTrue, Wolfram Language function, https://reference.wolfram.com/language/ref/NoneTrue.html (updated 2015).
CMS
Wolfram Language. 2014. "NoneTrue." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/NoneTrue.html.
APA
Wolfram Language. (2014). NoneTrue. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NoneTrue.html