
28 Mar
2009
28 Mar
'09
12:29 p.m.
On Fri, Mar 27, 2009 at 11:28:54AM -0400, Edward Z. Yang wrote:
On Fri, 27 Mar 2009, Brent Yorgey wrote:
thing n = n + fromIntegral (round (sqrt n))
thing :: Floating a => a -> a
thing n = n + round (sqrt (fromIntegral n))
thing :: Integral a => a -> a
That is, the return types of the method are different?
Right! -Brent