<p dir="ltr">This one doesn't work, since pappus doesn't return a list </p>
<div class="gmail_quote">Am 22.04.2014 10:47 schrieb "Frerich Raabe" <<a href="mailto:raabe@froglogic.com">raabe@froglogic.com</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 2014-04-22 10:00, John M. Dlugosz wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
chain1 = [ translate x y $ color red $ Circle r | (x,y,r) <- pappus 100 [1..10] ]<br>
<br>
The above is not right, as the comprehension syntax doesn't see the input range buried in an argument.<br>
</blockquote>
<br>
[..]<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(1) how can the list comprehension syntax manage it,<br>
</blockquote>
<br>
I suspect<br>
<br>
  chain1 = [ translate x y $ color red $ Circle r | i <- [1..10], (x,y,r) <- pappus 100 i ]<br>
<br>
would be one way to do what you want.<br>
<br>
-- <br>
Frerich Raabe - <a href="mailto:raabe@froglogic.com" target="_blank">raabe@froglogic.com</a><br>
<a href="http://www.froglogic.com" target="_blank">www.froglogic.com</a> - Multi-Platform GUI Testing<br>
______________________________<u></u>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/beginners</a><br>
</blockquote></div>