Alun Champion added the comment: 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) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25193> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com