[Tutor] is "fold" same as "reduce"?

Karthik Gurumurthy karthikg@aztec.soft.net
Tue, 22 Jan 2002 09:42:05 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C1A329.0D2FFD40
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I got introduced to functional programming through python and i like it
now..it was'nt the case a couple of months back though.
a "lambda" used to put me off.
I was doing some reading and i was just wondering if the "fold"
construct is same as "reduce" in python?
and i took a look @ the functional programming article in IBM's website.
that was a good introduction.
Can someone tell me about other interesting sites that have a good
discussion on functional programming...with examples.
 
thanks
karthik

 


------=_NextPart_000_0000_01C1A329.0D2FFD40
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>

<META content=3D"MSHTML 5.50.4616.200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D642310604-22012002><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>I&nbsp;got introduced to functional programming through python =
and i like=20
it now..it was'nt the case a couple of months back =
though.</FONT></SPAN></DIV>
<DIV><SPAN class=3D642310604-22012002><FONT face=3DArial =
color=3D#0000ff size=3D2>a=20
"lambda" used to&nbsp;put me off.</FONT></SPAN></DIV>
<DIV><SPAN class=3D642310604-22012002><FONT face=3DArial =
color=3D#0000ff size=3D2>I was=20
doing some reading&nbsp;and i was just wondering if the =
"fold"&nbsp;construct is=20
same as&nbsp;"reduce" in python?</FONT></SPAN></DIV>
<DIV><SPAN class=3D642310604-22012002><FONT face=3DArial =
color=3D#0000ff size=3D2>and i=20
took a look @ the functional programming article in IBM's website. that =
was a=20
good introduction.</FONT></SPAN></DIV>
<DIV><SPAN class=3D642310604-22012002><FONT face=3DArial =
color=3D#0000ff size=3D2>Can=20
someone tell me about other interesting sites that have a good =
discussion on=20
functional programming...with examples.</FONT></SPAN></DIV>
<DIV><SPAN class=3D642310604-22012002></SPAN><SPAN =
class=3D642310604-22012002><FONT=20
face=3DArial color=3D#0000ff size=3D2></FONT></SPAN><SPAN=20
class=3D642310604-22012002><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D642310604-22012002><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>thanks</FONT></SPAN></DIV>
<DIV><SPAN class=3D642310604-22012002><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>karthik</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0000_01C1A329.0D2FFD40--