Say a collection grow. Once it's size reach 10k, I want to get rid the first 9k. How to do so?

Oh ya I could use removeRange.

Is there another function that will output say, the last 1k of the element, say if I do not want to remove anything? Something like tail or something.