模拟数组并具有自定义扩展功能的Collection类

【摘自:https://www.boxueio.com/series/do-not-loop-again/】