From: Clemens Hintze Date: 2001-10-27T08:14:31+09:00 Subject: [ruby-talk:23566] Re: simplified use of map Avi Bryant wrote: Hi, > Robert Feldt wrote: (...) > >I know that you can do it with > > >[1,2].map {|e| e.succ} > > You might want to look at Marcel Weiher's Higher Order Messaging for Obj-C > and Squeak... this makes use of "trampoline" objects to do the same thing > like this: > > [1,2].map.succ #=> [2,3] It is nice to see another Objective-C fan here :-) I have also used Marcel's base idea to implement a somewhat simple HOM. It is not so comprehensive as the Marcel's Objective-C solution, as I want not to touch the methods of Enumerable. I already posted my solution, but I would be interested on your idea ... Thanks in advance, \cle