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

GüŸnther Schmidt gue.schmidt at web.de
Tue Jun 16 22:19:58 EDT 2009


Hi Richard,

I'd have to guess here :)

Maybe, what you have in mind, is:

generate an infinite list with numbers from [1 ..], "map" it to base 26?

Günther




Richard O'Keefe schrieb:
> 
> 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