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

[REBOL] Who is that grouch? -or- Fun with functions! Re:(11)

From: joel:neely:fedex at: 6-Oct-2000 6:57

Hello, [lmecir--geocities--com] wrote:
> Hi, > > I am prepared to incorporate enhancements you suggest to > http://www.rebol.org/advanced/highfun.r >
Thanks, to you for providing that library and to Allen for pointing out its existence! I haven't had a chance yet, but I'm looking forward to studying them.
> Cheers > Ladislav > > BTW, an RT (Referentially Transparent) version of: > > object/function/refinement1/.../refinementN arg1 ...argN > > call can be written (using Refined from above URL) as follows: > > do refined get in object 'function reduce [ > 'refinement1 ...'refinementN > ] arg1 ...argN > > (ugly), or, more efficiently (using RT function defined below): > > rt: function [block [block!]] [blk] [ > do head change/only copy block to path! reduce first block > ] > > as: > > rt [['object 'function 'refinement1 ... 'refinementN] arg1 ... argN] > > (MUCH more sexy). >
I may have some questions after I play with this...
> > I don't think this has been mentioned in this thread yet. > > Ladislav created a number of the high level functions. Not sure how they > > stack up in light of the recent benchmarks. But they are worth a look. > > > > A set of higher order functions: > > Accum, Apply, Curry, Composition, Enum, Filter, Map, Mapper, Nargs, > Refined > > http://www.rebol.org/advanced/highfun.r > > >
Well, actually, I do have one question (esp. to Ladislav and/or Allen) regarding style. I've noticed both of you using capital letters (e.g., in the list of HOFs above), but haven't figured out the convention by which one decides what is capitalized. Just curious... -jn-