Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Re: (Efficiency Golf) Triangular numbers

by Abigail (Deacon)
on May 31, 2001 at 18:51 UTC ( #84581=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: (Efficiency Golf) Triangular numbers
in thread (Efficiency Golf) Triangular numbers

I used @seen {$n,} = (); and not $seen {$n} = undef; because I used the slice in the other case as well. I wanted to use as much identical syntax as possible, and didn't see a reason to special case adding a single key.

As for using a trailing comma, all I can say is that using -w is useful. If you use it, you'll see why the comma was used.

-- Abigail


Comment on Re: Re: Re: (Efficiency Golf) Triangular numbers

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (15)
As of 2014-07-25 16:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (174 votes), past polls