[Haskell-cafe] Need some help with an infinite list

Richard O'Keefe ok at cs.otago.ac.nz
Tue Jun 16 22:01:53 EDT 2009


On 17 Jun 2009, at 12:28 pm, GüŸnther Schmidt wrote:

> Hi guys,
>
> I'd like to generate an infinite list, like
>
> ["a", "b", "c" .. "z", "aa", "ab", "ac" .. "az", "ba", "bb", "bc" ..  
> "bz", "ca" ...]
>
> When I had set out to do this I thought, oh yeah no prob, in a  
> heartbeat.

Let me change this slightly.

["0","1",...,"9","00","01",..,"99","000",..."999",...]

Does that provide a hint?



More information about the Haskell-Cafe mailing list