I am learning F #, so forgive me if it is very simple. I have a function that should return a formatted string:
> let getDoubled x = sprintf "%d doubled is %d" x, x * 2;;
But when I execute this function, it returns the following:
> getDoubled 2;; val it : (int -> string) * int = (<fun: getDoubled@24-1 >, 4)
I know I can use the .NET string.Format , but wondered if there is an F # way to do this?
source share