Message253447
If you are looking for other examples.
Here's a wheel factorization of an indefinite sieve (primes) that was peer reviewed on codereview.stackexchange.com, see the final result in the last post by Will Ness: http://codereview.stackexchange.com/questions/92365/wheel-based-unbounded-sieve-of-eratosthenes-in-python which included two uses of accumulate(chain(...), ...).
Constructing and unpacking the list in a chain seems like an unnecessary overhead when all you are looking for is an initial value. The reason I suggested it as the 3rd argument is it is the "most" optional argument and mirrors reduce (though iterable, function is the reverse of reduce). |
|
Date |
User |
Action |
Args |
2015-10-26 00:57:53 | achampion | set | recipients:
+ achampion, rhettinger, mark.dickinson |
2015-10-26 00:57:53 | achampion | set | messageid: <1445821073.75.0.823800454224.issue25193@psf.upfronthosting.co.za> |
2015-10-26 00:57:53 | achampion | link | issue25193 messages |
2015-10-26 00:57:53 | achampion | create | |
|