A function will not have any repeating x values. They can have repeating y values, just not the x ones. So u need to find the set of points that has all different x values...and that is ur function.
{(0,1), (-2,8), (5,19), (2,8)}....this has no repeating x values and is therefore, a function