Hi,
I am prepared to incorporate enhancements you suggest to
http://www.rebol.org/advanced/highfun.r
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).
> Happy, Grouchy, and Dopey ;-)
>
> 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
>
> Cheers,
>
> Allen K
> Lazy..
>
> --Snow White Carl, and REBOL dwarves, playing to peer review in a suburb
> near you!--
>
>
>