Why does andThen only exist for single argument functions in Scala?
andThen
The following code works:
val double = (x: Int) => x * 2 val timesFou
I have just noticed it is easy to work around with the following:
val multiplyAndDouble = multiply.tupled andThen double val res = multiplyAndDouble(1, 3) // res = 6