Everything is in the title, is the usage of flip function a smell for bad design ?
I'm coming from a JavaScript universe and used to work with lodash/fp or ramda.
Recently, I've written some stuff where two list of completly different types have to work together to create another list.
I've tried to extract some stuff in functions, but the signature look like:
const isNotIn = list => value => _.get(value)(list)
So I've tried to use the flip function (sorry for the syntax, lodash/fp isn't ready for simple flip / curry):
const isNotIn = _.curryN(2, _.flip(_.get));
It makes me feel a bit weird, like I'm missing or smelling something.
Do you have any thoughts concerning the flip function and bad design ?