From: gabriele renzi Date: 2004-05-13T03:08:52+09:00 Subject: Re: in search of a compelling reason to use ruby.... il Wed, 12 May 2004 16:37:42 GMT, Ryan Paul ha scritto:: > >In python, we have map, filter, and list comprehensions, all of which can >be used to manipulate lists in very general ways. In order to do certain >things, python users have to stack multiple functions into map statements. >Generally, this is actually pretty simple to do, and makes things somewhat >intuitive. In ruby, there are a multitude of rather oddly named array >functions that have very specific behaviors, most of which can be used >with blocks to concisely describe extremely sophisticated operations. In ruby there are a lot of Enumerable functions, not array's :) What method do you think is oddly named ? I for one, would say inject() but using reduce() or fold() is equally non intuitive for me :)