<div dir="ltr"><div><div><div><div>Hi,<br></div>remember that in Haskell argument application is just a space, not using parenthesis and comma like in some imperative languages.<br></div>In Java: myFunc (a, b) <br></div>Is equivalent in Haskell to: myfunc a b<br>
</div><div>so center ((1,2), (3, 4)) is a function applied to only one arguement (a tuple of tuples) </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 10, 2014 at 2:00 PM, Roelof Wobben <span dir="ltr"><<a href="mailto:r.wobben@home.nl" target="_blank">r.wobben@home.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Mathijs Kwik schreef op 10-5-2014 13:55:<div class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Roelof Wobben <<a href="mailto:r.wobben@home.nl" target="_blank">r.wobben@home.nl</a>> writes:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I have to find the center of 2 points as a assigment for a course on fpcomplete. This is no homework because I do a self-study.<br>
<br>
So I did  this:<br>
<br>
center (x1,y1) (x2,y2) = ( ((x1+x2)/2),((y1+y2)/2) )<br>
main = print $ center ((1,2), (3, 4))<br>
</blockquote>
should be:<br>
<br>
center (x1,y1) (x2,y2) = ( ((x1+x2)/2),((y1+y2)/2) )<br>
main = print $ center (1,2) (3, 4)<br>
<br>
<br>
</blockquote>
<br></div>
oke,<br>
<br>
as I see you changed the main function but I have to make the center function work not change the main function.<div class="HOEnZb"><div class="h5"><br>
<br>
Roelof<br>
<br>
______________________________<u></u>_________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div>