Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^3: Sorting on identical values

by Anonymous Monk
on Aug 14, 2019 at 01:19 UTC ( #11104420=note: print w/replies, xml ) Need Help??

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 (Bishop) 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:  <%-{-{-{-<

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11104420]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2019-09-21 08:48 GMT
Find Nodes?
    Voting Booth?
    The room is dark, and your next move is ...

    Results (271 votes). Check out past polls.