On 6/12/07, Jenda Krynicky <jenda / cpan.org> wrote:
> Chris Carter wrote:
> > On 6/10/07, Erwin Abbott <erwin.abbott / gmail.com> wrote:
> >>   puts words.last # output: thre
> >>
> >>
> >
> > class Proc
> >   def bcall(*args,&block)
> >     self.call(*args.concat([*block]))
> >   end
> > end
> >
> > x_y = lambda {|data,proc| proc.call(data) if data.is_a? String }
> >
> > x_y.bcall("hello") {|data| puts data.succ }
> >
> > It's a hack, but it works.
>
> Interesting how an ill-designed syntactic sugar forces people to jump
> through the hoops.
>
> Jenda
>
> --
> Posted via http://www.ruby-forum.com/.
>
>

Hmm, well, it is a feature that most languages don't have in the first
place, it exists in later versions of ruby, and I really wouldn't call
currying "jumping through hoops", its a pretty common and easy thing
to do...

-- 
Chris Carter
concentrationstudios.com
brynmawrcs.com