Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: small steps toward Perl literacy, temp vars and parentheses

by BlaisePascal (Monk)
on Jun 16, 2004 at 21:54 UTC ( [id://367449]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (set! 'h 
      (hash-new
    ...
          (flatten-map (lambda (x) (list x (hash-get h x)))
            (sort stringcomp
              (hash-keys h))))))
    
  2. or download this
    %h ==> keys ==> sort { $a<==>$b } ==> map { $_, %h{$_} } ==> [0,1] ==>
    + %h;
    
  3. or download this
    %h <== [0,1] <== map { $_, %h{$_} } <== sort { $a<==>$b } <== keys <==
    + %h;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2024-03-28 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found