
22 Apr
2014
22 Apr
'14
4:47 a.m.
On 2014-04-22 10:00, John M. Dlugosz wrote:
chain1 = [ translate x y $ color red $ Circle r | (x,y,r) <- pappus 100 [1..10] ]
The above is not right, as the comprehension syntax doesn't see the input range buried in an argument.
[..]
(1) how can the list comprehension syntax manage it,
I suspect chain1 = [ translate x y $ color red $ Circle r | i <- [1..10], (x,y,r) <- pappus 100 i ] would be one way to do what you want. -- Frerich Raabe - raabe@froglogic.com www.froglogic.com - Multi-Platform GUI Testing