[REBOL] TECHNICAL ESSAY/CHALLENGE(s) - "Expression Based"? Re:(3)
From: g:santilli:tiscalinet:it at: 4-Oct-2000 15:44
[joel--neely--fedex--com] wrote:
[do-in diffs either even? num [[up/by num]] [[down/by num]]]
> > (using COMPOSE here you may get closer to your hypothetical
> > syntax...)
>
> Being a Bear of Small Brain (and I was up late last night and
> haven't had sufficient coffee yet this morning), I must ask for
> an example of what you had in mind here.
>> num: 1
== 1
>> reduce [make path! compose [(pick [up down] even? num) by] 'num]
== [down/by num]
>> num: 2
== 2
>> reduce [make path! compose [(pick [up down] even? num) by] 'num]
== [up/by num]
Not as elegant as I'd like it to be...
Regards,
Gabriele.
--
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/