I need a function which gets two Ints (a and b) and returns A/B as Int. I am sure that A/B will alw
Int
a
b
A/B
Here's what I did to make my own:
quot' a b | a<b = 0 -- base case | otherwise = 1 + quot' a-b b
Why not just use quot?
quot
quot a b
is the integer quotient of integers a and b truncated towards zero.