Returns a new array containing the first occurrence of each distinct value.
Values to deduplicate.
A new array with duplicates removed, preserving their first-seen order.
Returns a new array containing the first occurrence of each distinct value.