Simple duplicate removal
Write a function that receives a StaticArray where the elements are already in sorted order and returns a new Static Array with all of the duplicate values removed. The original array must not be modified.
You may assume that the input array will contain at least one element, values stored in the array are all of the same type (either all numbers, or strings, or custom objects, but never a mix of these), and that elements of the input array are already in sorted order. You do not need to write checks for these conditions.