Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Perl Monk, Perl Meditation
 
PerlMonks  

Re^8: Understanding the Schwartzian transform. (cache expensive transform, decorate-sort-undecorate )

by Anonymous Monk
on Jul 23, 2013 at 01:11 UTC ( #1045749=note: print w/ replies, xml ) Need Help??


in reply to Re^7: Understanding the Schwartzian transform.
in thread Understanding the Schwartzian transform.

Agreed ... OPs question

Yes, the original is canonical ST, there is no disputing that (you answered correctly)

But your shortening (somewhat summarized for brevity ) to  @out = map {} sort {} map {} @in is definitely not the canonical Schwartzian Transform

because the essence of ST is not the pipeline, pipeline is regular usage of map/grep, its even present in GRT. The essence of ST, the trick of it, the rule of it , [ is the caching ] .

If you replace the essence with  {BLOCK} its unrecognizable, might as well call it  transform / sort / transform -- nothing Schwartzian about it :) and not very descriptive, unlike decorate-sort-undecorate which describes both ST and GRT


Comment on Re^8: Understanding the Schwartzian transform. (cache expensive transform, decorate-sort-undecorate )
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-04-17 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (459 votes), past polls