Is (-1,1), (0,0), (1,1), (2,2) a function?
Yes it is a function because no 2 same x values repeat with different y values.