All details stated in the question, but to clear up, I want to know specifically, if a set of points has a point that is included twice is considered a function.