Aaron Crane writes: > I have one other idea, but I can't decide if I like it: > > @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.
Like this one? macro rinfix($op) is parsed(/ \: (.*?) <before: <[\s(]> > /) { return { -> $a, $b { &("infix:$op").($b, $a) } } } Luke