From: Mike Gold Date: 2009-01-12T12:54:30+09:00 Subject: Re: functional programming Joel VanderWerf wrote: > Perhaps I'm distracted by the specifics of mean and missing the general > point... 'mean' stands for anything. I should have called it 'some_func'. You can't just change its meaning. In particular, you can't change the methods in the ruby standard library. (Well, you can, but you'll be in danger of receiving a painful retributive wedgie from those who use your code. Perhaps even an atomic one.) You can always write wrappers which convert a given method or lambda to a one-argument lambda expecting an array. But this is just another kind of Lisp emulation in Ruby, taking non-homogeneous primitives and making them homogeneous. -- Posted via http://www.ruby-forum.com/.