Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Functional programming in REBOL

From: g:santilli:tiscalinet:it at: 7-Aug-2001 19:23

Hello Larry! On 07-Ago-01, you wrote: [BTW, just to let you know, I think this has been discussed on this list before, with Ladislav providing a nice and general solution IIRC] LP> pa2: func [f x /local h][ LP> h: func [f x][func [y][f :x :y]] LP> h :f :x LP> ] I'd write it as: pa2: func [f x] [ use [ff xx] [ xx: :x ff: :f func [y] [ff xx y] ] ] or pa2: func [f x] [ func [y] reduce [:f :x 'y] ] Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/