If I have a function one some arity, say `n`

, and I want to convert it to a unary function, what is the best way to do it? Do I need to write it by hand every time, or is there an operator I can use?

For example, suppose I have a function like,

```
def f(x1:A1, x2: A2, ... xn:An):B = {
...
}
```

and I need to give this function to a `map`

, `hashMap`

, `fold`

etc, which is expecting a tuple of type `((A1,A2,...An)) => B`

Is there a function such as `n-arity-function-to-appropriate-tuple-function`

?