It is easy to call f:Func<'T, 'T>
from F# as 'T -> 'T
by using f.Invoke
But how should I call f:Func<'T, 'T, 'T>
from F# as 'T -> 'T -> 'T
?
When I use f.Invoke
I get 'T * 'T -> 'T
, i.e. a tuple instead of two arguments.
Try:
let g = f.Invoke |> FuncConvert.FuncFromTupled
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With