Write a function to return the distinct elements in a list. Return one copy of each value, preserving the order in which each value first appears. The input is a list of integers, and the output must be a new list of integers.
Function: def distinct_elements(values):
def distinct_elements(values):