[Haskell-cafe] Re: default for quotRem in terms of divMod?

Derek Elkins derek.a.elkins at gmail.com
Sat Aug 11 15:24:57 EDT 2007

On Sat, 2007-08-11 at 21:10 +0200, Henning Thielemann wrote:
> Btw. is there any application, where 'quot' and 'rem' are needed? All
> occurrences of 'quot' and 'rem' I found in code so far were actually wrong
> and should have been 'div' and 'mod'.
> http://www.haskell.org/haskellwiki/Things_to_avoid#Forget_about_quot_and_rem

quotRem is faster than divMod, and my understanding is that even divMod
is arguably broken.


More information about the Haskell-Cafe mailing list