From: "David A. Black" Date: 2004-04-05T21:06:55+09:00 Subject: Re: deciding between ruby and python Hi -- On Mon, 5 Apr 2004, Ville Vainio wrote: > Obviously we can do #each too: > > def L(x): > print x > return x*2 > > map(L, [1,2,3]) That looks like #map rather than #each. > But plain old for loop is more convenient, esp. if you don't need to > generate a result list in the process. #each doesn't generate a result list. It returns the receiver. David -- David A. Black dblack@wobblini.net