Re: [Haskell-cafe] Division: Is there a way to simultaneously find the quotient and remainder?

2011-05-14 Thread Henning Thielemann
Chris Smith schrieb: Sure... see quotRem in the prelude. http://www.haskell.org/haskellwiki/Haskell_programming_tips#Forget_about_quot_and_rem ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Division: Is there a way to simultaneously find the quotient and remainder?

2011-05-14 Thread KC
Thank you all. I remember Hoogle'ing for rem and then quot but not finding qoutRem. :) On Sat, May 14, 2011 at 6:55 AM, Henning Thielemann schlepp...@henning-thielemann.de wrote: Chris Smith schrieb: Sure... see quotRem in the prelude.

Re: [Haskell-cafe] Division: Is there a way to simultaneously find the quotient and remainder?

2011-05-14 Thread Daniel Fischer
On Saturday 14 May 2011 15:55:15, Henning Thielemann wrote: Chris Smith schrieb: Sure... see quotRem in the prelude. http://www.haskell.org/haskellwiki/Haskell_programming_tips#Forget_about _quot_and_rem No, don't, just know when you want which. quot and rem are what you get from the

[Haskell-cafe] Division: Is there a way to simultaneously find the quotient and remainder?

2011-05-06 Thread caseyh
:) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Division: Is there a way to simultaneously find the quotient and remainder?

2011-05-06 Thread Chris Smith
Sure... see quotRem in the prelude. On May 6, 2011 10:49 AM, cas...@istar.ca wrote: :) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___

Re: [Haskell-cafe] Division: Is there a way to simultaneously find the quotient and remainder?

2011-05-06 Thread Lyndon Maydwell
Hoogle is very useful for the kinds of questions where you can estimate a likely type: http://www.haskell.org/hoogle/?hoogle=Integral+a+%3D%3E+a+-%3E+a+-%3E+%28a%2Ca%29 On Sat, May 7, 2011 at 12:50 AM, Chris Smith cdsm...@gmail.com wrote: Sure... see quotRem in the prelude. On May 6, 2011