Added flip and partial3 functions.