问题
I want to apply a regular function that takes two arguments to a tuple. I defined a helper function like so:
let apply f (a, b) =
f a b
However I feel like this must be a fairly common use case and wondered if it was a function in the standard library (I'm not sure what terms to search for)
回答1:
The double forward pipe (||>) does this.
来源:https://stackoverflow.com/questions/21840206/is-there-a-pre-existing-function-to-pass-a-tuple-as-args