[Haskell-beginners] How would you write...

Norbert Melzer timmelzer at gmail.com
Tue Apr 22 09:08:02 UTC 2014


That's why I think Daniel Fischers solution is the one.
Am 22.04.2014 10:59 schrieb "Frerich Raabe" <raabe at froglogic.com>:

> On 2014-04-22 10:49, Norbert Melzer wrote:
>
>> This one doesn't work, since pappus doesn't return a list
>>
>
> Ah, right, I forgot to adjust that part. How about
>
>    chain1 = [ translate x y $ color red $ Circle r | i <- [1..10], let
> (x,y,r) = pappus 100 i ]
>
> ...though I'm not too fond of 'let' declarations in list comprehensions.
>
> --
> Frerich Raabe - raabe at froglogic.com
> www.froglogic.com - Multi-Platform GUI Testing
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140422/8560e917/attachment.html>


More information about the Beginners mailing list