Takes one mandatory argument named values, a list of scalar values, and returns a new
list with duplicate values removed, keeping only the first occurrence of each distinct
value in original order.
The list is returned as a plain array of values, not wrapped in an object.
