import { Flip } from './types' ; import { apply } from '../apply' ; import { curry } from '../curry' ; name export const flip = function flip < A , B , C > ( f ) { return curry ( function ( b , a , ... args ) : C { return apply ( [ a , b , ... args ] , f ) ; } ) ; } ;