AnyMatch
AnyMatch[expr,form,level]
在层级 level 测试 expr 的各部分.
范例
打开所有单元关闭所有单元基本范例 (4)
范围 (4)
属性和关系 (6)
AnyMatch[list,form] 等价于 !NoneMatch[list,form]:
AnyMatch[list,form] 有效地处理稀疏向量:
AnyMatch[list,form] 按顺序检查 list 的各个部分,一旦匹配 form 即立即停止:
AnyMatch[list,form] 等价于 AnyTrue[list,MatchQ[form]]:
AnyMatch[{e1,e2,…},form] 等价于 Or[MatchQ[e1,form],MatchQ[e2,form],…]:
AnyMatch[list,e1e2…] 等价于 ContainsAny[list,{e1,e2,…}]:
可能存在的问题 (1)
对于关联,AnyMatch 仅测试值:
Wolfram Research (2024),AnyMatch,Wolfram 语言函数,https://reference.wolfram.com/language/ref/AnyMatch.html.
文本
Wolfram Research (2024),AnyMatch,Wolfram 语言函数,https://reference.wolfram.com/language/ref/AnyMatch.html.
CMS
Wolfram 语言. 2024. "AnyMatch." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/AnyMatch.html.
APA
Wolfram 语言. (2024). AnyMatch. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/AnyMatch.html 年