Jon Fairbairn schrieb:
> Melanie_Green <[email protected]> writes:
>> What are the limitations of list comprehension. [...]
>> a
>> aa
>> aaa
> 
> I'm not clear what you mean by the question. Why do you want
> to use list comprehensions? What if they aren't the best way
> of getting the result you want?
> 
> You can write 
> 
> [a | b <- [replicate n 'a' | n <- [1..]], a <- b ++ "\n"] 
> 
> but does that "replicate" fail to meet your specification?

Since we're »holfing« again:

        fix $ \xs -> [ 'a':xs | xs <- []:xs ]
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to