Function templates in F#
Let's say I am solving a particular problem and come up with a function 

let function parameter1 ... = 
                            a lot of adding, multiplying & so on with a lot of 
                            literals all over the place


Now this function works fine if my parameters are of type int. But somewhere I will need it to go up to 11, I will need that extra push into int64 or even BigInteger. So what do I do?
I copy&paste the function, change the name, and go hunting for all literal appearances that make the compiler think the function should operate on int. And this sucks.

Is there a way to do this:

let greatFunction param1 param2 = (param1+1)/(param2*2)

where param1 and param2 can be any combo of integer types?
Function templates in F#
===

Let's say I am solving a particular problem and come up with a function 

let function parameter1 ... = 
                            a lot of adding, multiplying & so on with a lot of 
                            literals all over the place


Now this function works fine if my parameters are of type int. But somewhere I will need it to go up to 11, I will need that extra push into int64 or even BigInteger. So what do I do?
I copy&paste the function, change the name, and go hunting for all literal appearances that make the compiler think the function should operate on int. And this sucks.

Is there a way to do this:

let greatFunction param1 param2 = (param1+1)/(param2*2)

where param1 and param2 can be any combo of integer types?