Returns a function that checks inequality with value