本文介绍了`iterate`是否有原始元素开始的原因?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有时使用,但我很少在结果列表中需要
参数。

I sometimes use iterate but I rarely need the argument in the resulting list.



From the documentation:

,持有
(f ^ n(x))== f ^(m + n) code>和 n 。

When talking about iterated function application, it is convenient to define f^0 == id, so that identities like f^m(f^n(x)) == f^(m+n)(x) hold for all natural numbers m and n.

有了这个定义, iterate 通过首先包含参数来满足以下标识:

With that definition in mind, iterate satisfies the following identity by including the argument first:

iterate f x !! n == f^n x

这篇关于`iterate`是否有原始元素开始的原因?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 17:51