Question: Please help me in Haskell language (4) Define functioncommonDivthat receives two numbers as input, and returns the list of all common divisors of those two
Please help me in Haskell language
(4) Define functioncommonDivthat receives two numbers as input, and returns the list of all common divisors of those two input numbers. For example if the inputs are 24 and 30, the output would be[1,2,3,6]. You may use list comprehension and function-divisor defined earlier.Hint:Given numbers n and m, generate the list of divisors of these numbers and only keep the intersection.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
