[EMAIL PROTECTED] (Aaron Crane) writes:
> One option might be an 'rsort' function, but I think that's somewhat lacking
> in the taste department.

Agreed.
 
> Another might be as simple as
> 
>   @unsorted ==> sort ==> reverse ==> @sorted;

@sorted <== sort <== @unsorted, no? ;)

>   @unsorted ==> sort &rinfix:cmp ==> @sorted;
> 
> That is, rinfix: (or some other name) is like infix:, but gives you a
> function that reverses its arguments before actually running the operator.
> Perhaps it could even be implemented as a macro.

I like this; it reminds me of the games you have to play with determining
what do to with binary operators whose operands are overloaded in different
classes.

-- 
Do not go gentle into that good night/Rage, rage against the dying of the light

Reply via email to