Juan-Carlos Gandhi (
juan_gandhi) wrote2013-02-13 11:26 am
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.tupledimplicit def f2tof1[X,Y,Z](f2: Function2[X,Y,Z]) = (xy:(X,Y)) => f2(xy._1, xy._2)
f2.tupled