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

[REBOL] APL'ish operations Re:(5)

From: lmecir::geocities::com at: 26-Jul-2000 19:21

Hi,
> I was thinking in terms of function projection. Take a > binary function (like + ), fix one of the arguments > (5) and create a monadic (?) function that can be > applied to say a vector. Sorry if all this seems like > elementary stuff, I'm just starting with REBOL and > exploring the possibilities. >
It is not that elementary, but with a help of http://www.rebol.org/advanced/highfun.ryou can do: block-add-5: mapper (do curry :add 1 5)
>> block-add-5 [1 2 3]
== [6 7 8] Regards Ladislav