Howdy Ladislav and Elan:
Not eager to jump into this fray, but:
> ... you cannot create a curried function in Rebol (- even
> though you can easily write it in Rebol), you cannot define
> a composition function, i.e. this:
>
> o: func [f [function!] g [function!]] [func [x] [f g x]]
Maybe I am missing the point, but what's wrong with:
composite: func ['f 'g][func [x] compose [(f) (g) x]]
secfirst: composite first second
thircond: composite second third
secfirst ["abc" "def" "ghi"]
== #"d"
thircond ["abc" "def" "ghi"]
== #"h"
There are also various ways in REBOL to emulate curried
functions.
Sorry if I'm missing somehting, jumping in here. Haven't
really followed your thread very deeply so far, so please
forgive me if I missed the mark.
-jeff
- [REBOL] Non-reentrant function calling in Rebol Re:(... icimjs
- [REBOL] Non-reentrant function calling in Rebol ... lmecir
- [REBOL] Non-reentrant function calling in Re... icimjs
- [REBOL] Non-reentrant function calling ... lmecir
- [REBOL] Non-reentrant function call... icimjs
- [REBOL] Non-reentrant function call... lmecir
- [REBOL] Non-reentrant function call... icimjs
- [REBOL] Non-reentrant function call... lmecir
- [REBOL] Non-reentrant function call... joel . neely
- [REBOL] Non-functions in Rebol lmecir
- [REBOL] Non-reentrant function call... jeff
- [REBOL] Non-reentrant function call... lmecir
- [REBOL] Non-reentrant function call... giesse
- [REBOL] Non-reentrant function call... lmecir
- [REBOL] Non-reentrant function call... giesse
- [REBOL] Non-reentrant function call... joel . neely
- [REBOL] Re: Non-reentrant function calling in Rebol giesse
