AllMatch
范例
打开所有单元 关闭所有单元基本范例 (4)
范围 (4)
属性和关系 (6)
AllMatch[list,form] 等价于 NoneMatch[list,Except[form]]:
AllMatch[list,form] 有效地处理稀疏向量:
AllMatch[list,form] 按顺序检查 list 的各个部分,一旦不匹配 form 即立即停止:
AllMatch[list,form] 等价于 AllTrue[list,MatchQ[form]]:
AllMatch[{e1,e2,…},form] 等价于 And[MatchQ[e1,form],MatchQ[e2,form],…]:
AllMatch[list,e1|e2|…] 等价于 ContainsOnly[list,{e1,e2,…}]:
可能存在的问题 (1)
对于关联,AllMatch 仅测试值:
文本
Wolfram Research (2024),AllMatch,Wolfram 语言函数,https://reference.wolfram.com/language/ref/AllMatch.html.
CMS
Wolfram 语言. 2024. "AllMatch." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/AllMatch.html.
APA
Wolfram 语言. (2024). AllMatch. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/AllMatch.html 年
BibTeX
@misc{reference.wolfram_2025_allmatch, author="Wolfram Research", title="{AllMatch}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/AllMatch.html}", note=[Accessed: 12-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_allmatch, organization={Wolfram Research}, title={AllMatch}, year={2024}, url={https://reference.wolfram.com/language/ref/AllMatch.html}, note=[Accessed: 12-April-2026]}