let add a b = a + b
There is a question. What type of these arguments? In F# interactive console, it's int, so othre numeric types is not accepted for this function.
> let add a b = a + b;;
val add : int -> int -> int
> add 2 3;;
val it : int = 5
> add 2.0 3.0;;
add 2.0 3.0;;
----^^^
stdin(3,5): error FS0001: This expression was expected to have type
int
but here has type
floatHow do we make the function acceptable other numeric types?