FilterRules

FilterRules[rules,patt]

通过只选择左边匹配 patt 的规则,对列表 rules 进行筛选.

FilterRules[rules,{patt1,patt2,}]

选择左边匹配任意 patti 的规则.

更多信息

  • rules 列表中的规则可以是 ->:> 规则.
  • 如果任意 patti 是一个诸如 lhs->rhs 形式的规则,则它可以视为 lhs 处理.
  • 如果 patti 是一个字符串,它也同样匹配一个名称是字符串的字符.
  • FilterRules[rules,Except[patt]] 给出所有的规则,除了左边匹配 patt 的规则.

范例

基本范例  (2)

对显示在 Plot 中的选项进行筛选:

Wolfram Research (2007),FilterRules,Wolfram 语言函数,https://reference.wolfram.com/language/ref/FilterRules.html.

文本

Wolfram Research (2007),FilterRules,Wolfram 语言函数,https://reference.wolfram.com/language/ref/FilterRules.html.

CMS

Wolfram 语言. 2007. "FilterRules." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/FilterRules.html.

APA

Wolfram 语言. (2007). FilterRules. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/FilterRules.html 年

BibTeX

@misc{reference.wolfram_2024_filterrules, author="Wolfram Research", title="{FilterRules}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/FilterRules.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_filterrules, organization={Wolfram Research}, title={FilterRules}, year={2007}, url={https://reference.wolfram.com/language/ref/FilterRules.html}, note=[Accessed: 22-November-2024 ]}