Discard array elements during enumeration to free up memory.