Wrapping a function with an indeterminate number of parameters in F#
问题 I'm trying to write a simple wrapper class in F# that takes a function that returns a string, and returns a function that takes the same parameters and returns the string from the input 'wrapped'. The following code works for functions that take a single variable (so test works fine): open System let myFunc anotherFunc = fun x -> "boo" + anotherFunc x + "unboo" let Func2 toDouble = (toDouble * 2).ToString () let test = myFunc Func2 let Func3 numOne numTwo = (numOne * numTwo).ToString () let