I have a problem; I have an array, I want to copy the first x number of variables from the array to a new array (for example variable 0 to 4). Duplicated variables should not be included.
Let's say the array is: 1 8 2 8 7 33 8 27. And I want to copy 5 variables, then the new array should include 1 8 2 7 3
Let's say the array is: 1 8 2 8 7 33 8 27. And I want to copy 5 variables, then the new array should include 1 8 2 7 3