I have a function in F # where I take an int value and return an int as a string .
int
string
let inttostring (x:int):string = ""+x
I cannot get ToString to work. Any help would be appreciated.
The empty string "" not compatible with x , which is of type int . you can use
""
x
let int2String x = sprintf "%i" x
or
let int2String (x: int) = string x