<p dir="ltr">What Is the the type of your pappus function? </p>
<div class="gmail_quote">Am 22.04.2014 10:01 schrieb "John M. Dlugosz" <<a href="mailto:ngnr63q02@sneakemail.com">ngnr63q02@sneakemail.com</a>>:<br type="attribution"><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>
<br>
What's the right way to express<br>
<br>
pap1 = translate x y $ color red $ Circle r<br>
 where (x,y,r) = pappus 100 1<br>
<br>
where 1 is [1..10] and I get a list of results?<br>
(pap1 does work as expected)<br>
<br>
(1) how can the list comprehension syntax manage it,<br>
(2) what's the recommended way to express that (not necessarily via list comprehension syntax) ?<br>
<br>
—John<br>
<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>