this appears to work: alphabet=map (\x->x:[]) ['a'..'z'] series=alphabet++[x++y|x<-series,y<-alphabet]
On Tue, Jun 16, 2009 at 8:28 PM, GüŸnther Schmidt <[email protected]>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. > > Uhm. > > Help, pls! > > Günther > > PS: I know this should be a no-brainer, sry > > _______________________________________________ > Haskell-Cafe mailing list > [email protected] > http://www.haskell.org/mailman/listinfo/haskell-cafe >
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
