Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^7: Numerically generate the perl sequence 1, 11, 111, ....

by blazar (Canon)
on Oct 15, 2008 at 19:59 UTC ( #717325=note: print w/replies, xml ) Need Help??


in reply to Re^6: Numerically generate the perl sequence 1, 11, 111, ....
in thread Generate the perl sequence 1, 11, 111, ....

I personally believe that it's by far too verbose, losing the original attempt at conciseness, but the latter could be recovered by means of of suitable (pseudo? unofficial?r) protocol/scheme (or whatever it's really called like...) so I think that the Perl 6 syntax should really be:

1,-3,-8...oeis://A046970
How's that for self-documenting code?

--
If you can't understand the incipit, then please check the IPB Campaign.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://717325]
help
Chatterbox?
[TCLion]: Good Morning Monks, I am parsing logs and some date time formats are inconsistent. I am trying to make output all same format. What is the best way to convert a month(word) to month(number)?
[Corion]: TCLion: I'm not aware of a better way than manually building the hash, as all strptime incarnations I know have nasty edge cases

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (15)
As of 2017-03-23 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (287 votes). Check out past polls.