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 John Porter
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform Tad McClellan
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform James Mastros
- Re: Schwartzian Transform James Mastros
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform Russ Allbery
- Re: Schwartzian Transform Russ Allbery
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform Uri Guttman
- Re: Schwartzian Transform Russ Allbery
- Re: Schwartzian Transform Uri Guttman
- Re: Schwartzian Transform Russ Allbery
- Re: Schwartzian Transform Peter Buckingham
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform Peter Buckingham
- Re: Schwartzian Transform John Porter
