Re: best cumulative sum
- From: "David Isaac" <aisaac0@xxxxxxxxxxx>
- Date: Wed, 23 Nov 2005 15:20:24 GMT
> Michael Spencer wrote:
> > This can be written more concisely as a generator:
<bonono@xxxxxxxxx> wrote in message
news:1132708265.941224.186550@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> If iterable has no elements, I believe the behaviour should be [init],
> there is also the case of init=None that needs to be handled.
Right. So it is "more concise" only by being incomplete, right?
What other advantages might it have?
> otherwise, that is more or less what I wrote for my scanl/scanl1.
I didn't see a post with that code.
Alan Isaac
.
- Follow-Ups:
- Re: best cumulative sum
- From: Peter Otten
- Re: best cumulative sum
- From: bonono@xxxxxxxxx
- Re: best cumulative sum
- References:
- best cumulative sum
- From: David Isaac
- Re: best cumulative sum
- From: Micah Elliott
- Re: best cumulative sum
- From: Erik Max Francis
- Re: best cumulative sum
- From: bonono@xxxxxxxxx
- Re: best cumulative sum
- From: David Isaac
- Re: best cumulative sum
- From: Colin J. Williams
- Re: best cumulative sum
- From: David Isaac
- Re: best cumulative sum
- From: Michael Spencer
- Re: best cumulative sum
- From: bonono@xxxxxxxxx
- best cumulative sum
- Prev by Date: Re: Timeout for regular expression
- Next by Date: Re: a new design pattern for Python Library?
- Previous by thread: Re: best cumulative sum
- Next by thread: Re: best cumulative sum
- Index(es):
Relevant Pages
|