2つの値と関数を受け入れる関数を作りたいと思います。私はトラブルの構文を理解することが生じていますので、私は、最小限の例を作った:私は、コンパイル・エラーが発生しますがF#で関数を受け入れる関数
> foo(2, 3, fun x y -> x + y)
5
:
let foo (x : int, y : int, func : int -> int -> int) =
func(x, y)
Anが出力を意図
The expression was expected to have type int, but here has type 'a * 'b
どのようにすべきですこれは書かれていますか?