ones = "1" : [ x ++ "1" | x <- ones ]
That and Language::Haskell should get you all the 1s you need . . .
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: Generate the perl sequence 1, 11, 111, ....
by Fletch
in thread Generate the perl sequence 1, 11, 111, ....
by alih110
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |