NoneMatch
NoneMatch[expr,form,level]
tests parts of expr at level level.
Details
- NoneMatch[expr,form] and NoneMatch[expr,form,level] only test as many ei as are necessary to determine the result. »
- NoneMatch[list,form] is equivalent to NoneMatch[list,form,1].
- NoneMatch works on associations, testing values but not keys. »
- NoneMatch[form][list] is equivalent to NoneMatch[list,form].
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:
Use the operator form of NoneMatch:
Scope (4)
Properties & Relations (6)
NoneMatch[list,form] is equivalent to AllMatch[list,Except[form]]:
NoneMatch[list,form] works efficiently on sparse vectors:
NoneMatch[list,form] checks the parts of list in order, stopping as soon as form matches:
NoneMatch[list,form] is equivalent to NoneTrue[list,MatchQ[form]]:
NoneMatch[{e1,e2,…},form] is equivalent to Nor[MatchQ[e1,form],MatchQ[e2,form],…]:
NoneMatch[list,e1e2,…] is equivalent to ContainsNone[list,{e1,e2,…}]:
Possible Issues (1)
For associations, NoneMatch tests only values:
Text
Wolfram Research (2024), NoneMatch, Wolfram Language function, https://reference.wolfram.com/language/ref/NoneMatch.html.
CMS
Wolfram Language. 2024. "NoneMatch." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NoneMatch.html.
APA
Wolfram Language. (2024). NoneMatch. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NoneMatch.html