Message253909
Understandable, though it would have also made the first order recurrence relationships more accurate, e.g. annualized interest on an initial balance:
accumulate(repeat(None), lambda: bal, _: bal*1.05, initializer=1000)
vs. artificially repeating 1000:
accumulate(repeat(1000), lambda: bal, _: bal*1.05)
Or, if the initialiser is expensive:
accumulate(chain([1000], repeat(None)), lambda: bal, _: bal*1.05) |
|
| Date |
User |
Action |
Args |
| 2015-11-02 13:26:47 | achampion | set | recipients:
+ achampion, rhettinger, mark.dickinson |
| 2015-11-02 13:26:47 | achampion | set | messageid: <[email protected]> |
| 2015-11-02 13:26:47 | achampion | link | issue25193 messages |
| 2015-11-02 13:26:47 | achampion | create | |
|