An auxiliary comparison function
We want a function that checks if an argument is less than n
We would like to fix n once and do the comparison repeatedly
Here is how to do it:
fun less(n) =
let fun f(x) = x<n
in f
end
Previous slide
Next slide
Back to first slide
View graphic version