in reply to Re: Sort by value - new twist
in thread Sort by value - new twist

Make the inlined sort routine take three args like this:

This suggestion is effectively equivalent to mine. I just applied what is essentially currying to simplify things.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re^3: Sort by value - new twist
by demerphq (Chancellor) on Sep 02, 2004 at 05:44 UTC

    Well actually you hadn't posted the updated version when I posted that. Your original wouldn't work if the sort function was declared in a different package scope. (As I suspected and as you realized :-)


    ---
    demerphq

      First they ignore you, then they laugh at you, then they fight you, then you win.
      -- Gandhi