Movatterモバイル変換
[0]ホーム
[Python-ideas] Pass a function as the argument "step" of range()
Andrew Barnertabarnert at yahoo.com
Fri Jul 3 12:33:31 CEST 2015
On Jul 3, 2015, at 03:23, Pierre Quentel <pierre.quentel at gmail.com> wrote:>> Well, you still haven't given an example with accumulate, have you ?If you seriously can't figure out how to put my accumulate(count(1), lambda n, _: n*2) and the takewhile from the reddit example together, then that's a good argument for making it a recipe.But it's still not a good argument for breaking the range type.
More information about the Python-ideasmailing list
[8]ページ先頭