in reply to Re^2: Sorting on identical values
in thread Sorting on identical values

*cough* you might wanna check on that :) Schwartzian transform

Replies are listed 'Best First'.
Re^4: Sorting on identical values
by AnomalousMonk (Archbishop) on Aug 21, 2019 at 20:16 UTC
    The Schwartzian transform is a general technique or pattern ...
    ... you might wanna check on that ...

    After looking at a bunch of Schwartzian Transforms, I must admit that they all seem to have sort stuck somewhere in the middle.

    I think what was bouncing around in the back of my mind when I wrote that were echoes of two important design patterns: a series of list-consuming/-producing functions (which may or may not include sort!) that feed each other seriatim to produce a final output; and the notion of memoization. I'd have to say now that while the ST (or decorate-sort-undecorate, or whatever) embodies those two patterns and is an important sorting design pattern, it's certainly not a general design pattern (or technique, or whatever).


    Give a man a fish:  <%-{-{-{-<