flipped now expects a curried function.