FoldPair[f,y0,list]
给出 FoldPairList[f,y0,list] 的最后一个元素.
FoldPair[f,y0,list,g]
给出 FoldPairList[f,y0,list,g] 的最后一个元素.


FoldPair
FoldPair[f,y0,list]
给出 FoldPairList[f,y0,list] 的最后一个元素.
FoldPair[f,y0,list,g]
给出 FoldPairList[f,y0,list,g] 的最后一个元素.
范例
打开所有单元 关闭所有单元属性和关系 (2)
FoldPair 返回由 FoldPairList 返回的列表的最后一个元素:
FoldPair 默认情况下不返回过程的剩余部分:
在第四个参数中使用 Last 以获取剩余部分:
在第四个参数中使用 Identity 以获取两个部分:
可能存在的问题 (2)
文本
Wolfram Research (2015),FoldPair,Wolfram 语言函数,https://reference.wolfram.com/language/ref/FoldPair.html.
CMS
Wolfram 语言. 2015. "FoldPair." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/FoldPair.html.
APA
Wolfram 语言. (2015). FoldPair. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/FoldPair.html 年
BibTeX
@misc{reference.wolfram_2025_foldpair, author="Wolfram Research", title="{FoldPair}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/FoldPair.html}", note=[Accessed: 16-September-2025]}
BibLaTeX
@online{reference.wolfram_2025_foldpair, organization={Wolfram Research}, title={FoldPair}, year={2015}, url={https://reference.wolfram.com/language/ref/FoldPair.html}, note=[Accessed: 16-September-2025]}