I want to implement a function halves that takes a list of integers and divides each element of the list in two.
Function definition:
halves :: Integral a => [a] -> [a]
I want to use div but having trouble.
I want to implement a function halves that takes a list of integers and divides each element of the list in two.
Function definition:
halves :: Integral a => [a] -> [a]
I want to use div but having trouble.