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

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

by moritz (Cardinal)
on Oct 12, 2008 at 16:33 UTC ( #716684=note: print w/replies, xml ) Need Help??

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

We shouldn't exaggerate.

The Unicode database is necessary for case conversion (uc/lc) and regex matches (is something a whitespace? or a letter? or a number?). Whereas the OEIS database would be only useful for one operator, and even there it's only part of the solution - if you know that a sequence represents a part of the prime numbers, you still have no really efficient way of generating them lazily.

However a library could easily override the infix:<...> operator and thus do what you want.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2016-10-27 08:57 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (356 votes). Check out past polls.