Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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]
[Discipulus]: figuring.. i'm still just use the side pm chat..
[erix]: (all this while karls guitar gently weeps...)
[planetscape]: (invade Hungary)++ #I'm hungry
[stonecolddevin]: i went too far down the irc rabbithole to hook this back up there
[Discipulus]: .. yes erix until NodeReaper put jhon coltrane again
[erix]: nice cover with the spitting image of George (and a great solo by Prince at the end )
[Discipulus]: good night monks! i feel fresh as the turkey in the hoven but i need to sleep
[planetscape]: gobble, gobble, Discipulus!

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2017-06-22 21:16 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (531 votes). Check out past polls.