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

[REBOL] Re: Functional programming in REBOL

From: larry:ecotope at: 9-Aug-2001 11:53

Hi Ladislav, Thanks for your many suggestions for a more general cfunc. I will be looking these over when I get a chance. BTW I implemented Church numerals last night using cfunc and everything seems to work ok. Of course, they are not very practical: the Church numeral 100 takes up 235904 bytes! Meantime, here is another puzzle. Given the definitions from my original posting: dupx: cfunc [f2][func [x][f2 :x :x]] uncurry: cfunc [f][func [x y][do f :x :y]] Define this function: puzzle: dupx :uncurry :dupx What does the function puzzle do? Cheers -Larry