import { apply } from './apply' ; import { Flip , Fn } from './types' ; param fn returns export const flip = < T extends Fn > ( fn ) : Flip < T > => ( ( ( a , b , ... args ) => apply ( [ b , a , ... args ] , fn ) ) as any ) as Flip < T > ;