I’m trying to print an int using the F# interactive console.
let x = sprintf "%d", 3
printf x
gives:
stdin(12,8): error FS0001: The type ‘(int -> string) *
System.Numerics.BigIntege r’ is not compatible with the type
‘Printf.TextWriterFormat<‘a>’
What am i doing wrong?
try
because the way you wrote it x is tuple of a function and a number