Re: [PHP] flip function

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! > I've tried with create function, for example: > > function flip($f,$arg) { > return create_function('$y','return '.$f."($arg".',$y);'); > } > > But if you use flip("foo",$o1) where o1 is an object then it won't work. Never tried that on Haskell coding, but it did solve most of my t

[PHP] flip function

2002-07-07 Thread Garland Foster
Hi all, Call me crazy if you want but I'm programming Haskell Code in PHP :-). I need some help to find a way to implement the Haskell flip function. Let me introduce flip: Flip receives two arguments: arg1 and arg2 arg1 must be the name of a function taking two arguments, name it f(x1,x2) arg