create flip2() for curried functions