Is there a pre-existing function for passing a tuple as arguments?

I want to apply a regular function that takes two arguments to a tuple. I defined a helper function as follows:

let apply f (a, b) =
    f a b

However, I feel this should be a fairly common case and wondered if it was a function in the standard library (I'm not sure what conditions to look for)

+4
source share
1 answer
+6
source

Source: https://habr.com/ru/post/1527388/


All Articles