How to write a variadic function in F# emulating a similar Haskell solution?
How can I (if at all) emulate variadic functions (not methods) so that I could write sum 1 2 3 sum 1 2 3 4 5 sum 1 2 3 4 5 6 7 // etc. The code above is just meant as an example - obviously if I would have to sum up a list then [ 1; 2 ; 3] |> List.sum is a much better way. However I am looking for a structurally similar solution like this Haskell solution What is also important is that the normal syntax for function calls and parameter values remains the same. So sum 1 2 3 vs sum(1, 2, 3) which effectively means that let sum ([<ParamArray>] arr) = ... is not wanted in this specific case. The