flip() distingishes typeof a function which is taken as a first argument.