I'm not that familiar with syntax of functional programming languages.
Isn't Int -> String -> String a shorthand for Int -> (String -> String)?
Thus I would have assumed the first argument to the result of sprintf "%s %d" would be an integer, then a string and the final result would be a string.
But the invocation would be sprintf "%s %d" "hello" 42, wouldn't it?
Isn't Int -> String -> String a shorthand for Int -> (String -> String)?
Thus I would have assumed the first argument to the result of sprintf "%s %d" would be an integer, then a string and the final result would be a string.
But the invocation would be sprintf "%s %d" "hello" 42, wouldn't it?