In Haskell, how can I get the floor of the result of a division between two Integers?
The function would be something like this:
floorOfDivision :: Int -> Int -> Int
floorOfDivision x y = x `someFunction` y
The function is div
from Prelude.
5 `div` 2 == 2