Catenate

Catenate[{list1,list2,}]

产生单个列表,其中 listi 的所有元素按顺序排列.

Catenate[{assoc1,assoc2,}]

按照在关联 associ 中出现的顺序,产生所有值的列表.

更多信息

  • Catenate[{expr1,expr2,}] 允许 expri 为任意列表和关联的混合.
  • 具有头 Missing 的所有 expri 被忽略.
  • 对于关联 assocCatenate[assoc]Catenate[Values[assoc]].

范例

基本范例  (5)

连接多个列表:

连接关联:

Catenate 有效地展平高维数组的前两个层:

Catenate 剥离键,连接所有的值:

Catenate 不会覆盖相同键的值:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_catenate, organization={Wolfram Research}, title={Catenate}, year={2014}, url={https://reference.wolfram.com/language/ref/Catenate.html}, note=[Accessed: 21-November-2024 ]}