> From: Asrarahmed Kadri <[EMAIL PROTECTED]>
>> #
> def iszero(n):
>> ... def s(x):
>> ... return False
>> ... return n(s, True)
>
>
> Where is n() defined ...?
n is a parameter of the function.
Thus to call iszero you need to pass in another fu
[Forwarding to tutor.
Asrarahmed, please learn to use the "Reply to All" feature on your email
client.]
-- Forwarded message --
Date: Sun, 12 Nov 2006 11:03:42 +
From: Asrarahmed Kadri <[EMAIL PROTECTED]>
To: Danny Yoo <[EMAIL PROTECTED]>
Subje
Danny Yoo wrote:
>
> The code above is a demonstration of a representation of numbers using
> functions, more commonly known as "Church Numerals". Functions are very
> powerful. *grin*
>
>
> So the fundamental notation of number isn't necessarily tied down to
> anything except the operations
The function just mathematically converted a base-10 number into a
base-2 number.
> For what its worth - we say "base 10" to mean "decimal". But 10 =
> decimal only when we have already agreed we are talking decimal!
> Consider a planet where residents have 8 fingers. They count 0