Decorate-sort-undecorate idiom: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (→{{header|Raku}}: Add a Raku example) |
(More than 5 solutions, promoted to non-draft task) |
||
Line 1:
{{
;Introduction
Line 31:
;The Schwartzian transform
Randal L. Schwartz wrote an implementation of the decorate-order-undecorate
The [[wp:Schwartzian transform|Wikipedia page]] states that a solution can be called a "Schwartzian transform" only if it does not use named temporary lists or arrays. The Lisp solution and even the solution shown by Schwartz actually use intermediate lists, but these lists do not have explicit names, instead they use a functional composition of map-sort-map operations.
|