GatherBy
GatherBy[list,f]
当应用 f,将 list 中每个集合中给出相同值的元素收集到子列表中.
GatherBy[list,{f1,f2,…}]
在层 i 应用 fi 后,将 list 收集到嵌套列表中.
范例
打开所有单元关闭所有单元应用 (6)
用 Framed 显示分组:
Wolfram Research (2008),GatherBy,Wolfram 语言函数,https://reference.wolfram.com/language/ref/GatherBy.html.
文本
Wolfram Research (2008),GatherBy,Wolfram 语言函数,https://reference.wolfram.com/language/ref/GatherBy.html.
CMS
Wolfram 语言. 2008. "GatherBy." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/GatherBy.html.
APA
Wolfram 语言. (2008). GatherBy. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/GatherBy.html 年