Uri Guttman <[EMAIL PROTECTED]> writes: >>>>>> "SC" == Simon Cozens <[EMAIL PROTECTED]> writes: > SC> No, it wouldn't, don't be silly. The ST can always be generalized to > SC> ST(data, func, compare) = > SC> map { $_->[0] } sort { compare($a->[1], $b->[1]) } map { [$_, f($_)] } data > and i don't see multiple keys or sort order selection per key. Then you need to look at f and compare a little closer, since it's in there. > and even creating a function to extract the key is not for beginners in > many case. Without creating a function to extract the key, you can't sort in Perl at all. sort { $a <=> $b } contains two functions to extract the keys. Functions don't have to be complicated, you know. -- Russ Allbery ([EMAIL PROTECTED]) <http://www.eyrie.org/~eagle/>
- Re: Schwartzian Transform Simon Cozens
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform Jarkko Hietaniemi
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform Jarkko Hietaniemi
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform Tad McClellan
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform Simon Cozens
- Re: Schwartzian Transform indigo
- Re: Schwartzian Transform Russ Allbery
- Re: Schwartzian Transform Uri Guttman
- Re: Schwartzian Transform Russ Allbery
- Re: Schwartzian Transform Uri Guttman
- Re: Schwartzian Transform Russ Allbery
- Re: Schwartzian Transform Nick Ing-Simmons
- Re: Schwartzian Transform Adam Turoff
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform James Mastros
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform John Porter