Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Fastest way to sort a list of integers into 0,1,2,3,-3,-2,-1

by ikegami (Patriarch)
on Feb 06, 2019 at 20:10 UTC ( [id://1229495]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Fastest way to sort a list of integers into 0,1,2,3,-3,-2,-1
in thread Fastest way to sort a list of integers into 0,1,2,3,-3,-2,-1

Oh right. It would be

@list = map { unpack 'j>', $_ } sort map { pack 'j>', $_ } @list;

I knew I was tired and missing something.

  • Comment on Re^4: Fastest way to sort a list of integers into 0,1,2,3,-3,-2,-1
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-16 17:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found