Juan-Carlos Gandhi (
juan_gandhi) wrote2013-02-13 11:26 am
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
is there anything like this already?
implicit def f2tof1[X,Y,Z](f2: Function2[X,Y,Z]) = (xy:(X,Y)) => f2(xy._1, xy._2)
Update:
f2.tupled
implicit def f2tof1[X,Y,Z](f2: Function2[X,Y,Z]) = (xy:(X,Y)) => f2(xy._1, xy._2)
f2.tupled