Results in "validity" if the specified function returns true for a given value, otherwise results in "invalidity".