These are chat archives for ramda/ramda
I find myself writing a lot of things like this:
const willStop = model => (R.equals(model.playerStop, R.F) ? R.T : R.F); // ... hidden bits () => willStop(model) ? enemyStop(model) : removeStop([model, aiPattern])
But because functions are truthy, it will never get to removeStop.
const willStop = model => !!R.equals(model.playerStop, R.F);
Fin this way confuses the meaning of the code
const willStop = x => x.playerStopor
!x.playerStop, according to whatever you need