<div dir="ltr">sorry <div><br></div><div>ok I am trying to make these calculation </div><div><br></div><div>func (x,y) s dg =((x*(cos dg) - y*(sin dg)),(x*(sin dg) - y*(cos dg)))</div><div><br></div><div>This work for type (Float -> Float)</div>
<div><br></div><div>but how can make it work with ((Float -> Float) -> Bool)</div><div><br></div><div>because my main function that I want use with. it takes (Float,Float) ->Bool) I need to return the same type ((Float,Float) ->Bool) so it could be used with other function. </div>
<div><br></div><div><br></div><div><div class="gmail_quote">On Mon, Apr 19, 2010 at 5:54 PM, Ozgur Akgun <span dir="ltr"><<a href="mailto:ozgurakgun@gmail.com">ozgurakgun@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Can you at least give an example of how you intend to use this "func"?<br>
Since you do not describe it's behaviour, it is very hard to make a useful<br>
comment (at least for me)<br>
<br>
Best,<br>
<div><div></div><div class="h5"><br>
On 19 April 2010 16:54, Mujtaba Boori <<a href="mailto:mujtaba.boori@gmail.com">mujtaba.boori@gmail.com</a>> wrote:<br>
><br>
> Hello<br>
> I am sorry for the silly question.<br>
><br>
> I have a function as the following<br>
> func:: ((Float,Float) ->Bool) -> Float -> ((Float,Float) -> Bool)<br>
> I am trying to make calculation in this type ((Float,Float) ->Bool) with Float and then pass the information to ((Float,Float) -> Bool)<br>
><br>
> Thank again appreciated.<br>
</div></div>> _______________________________________________<br>
> Haskell-Cafe mailing list<br>
> <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
> <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
><br>
<br>
<br>
<br>
--<br>
<font color="#888888">Ozgur Akgun<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Mujtaba Ali Alboori<br>
</div></div>