What's wrong with my test function?
let divisorOf(d, n) = n % d = 0
let notDivisible(d, n) = not (divisorOf(d, n))
let rec test(a, b, c) = function
| (a, b, _) when (a > b) -> true
| (a, b, c) -> notDivisible(a, c) && test(a + 1, b, c)
I'm getting a compiler error that the expression on line 7 has function type, not bool.
(7,40): error FS0001: This expression was expected to have type
bool
but here has type
'a * 'a * 'b -> bool