Takes one element from the beginning of the array and returns it.
Returns the retrieved element. Returns void if there are no elements.
The retrieved element is removed from the array (the size of the array is reduced by one).