"Azolex" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> generators challenge
>
>
> define "limit" and "itially"
>
> so that
>
> limit(foo(x) for x in itially(bar))
>
> works out the same as
>
> limit2(foo,bar)
>
> with
>
> def limit2(foo,bar) :
>
Azolex wrote:
> generators challenge
>
>
> define "limit" and "itially"
>
> so that
>
> limit(foo(x) for x in itially(bar))
>
> works out the same as
>
> limit2(foo,bar)
>
> with
>
> def limit2(foo,bar) :
> bar1 = foo(bar)
> while bar != bar1
generators challenge
define "limit" and "itially"
so that
limit(foo(x) for x in itially(bar))
works out the same as
limit2(foo,bar)
with
def limit2(foo,bar) :
bar1 = foo(bar)
while bar != bar1 :
bar1,bar = foo(bar),bar1