how to create an array of repeating object in kotlin? : <p>I know how to do it by creating a loop but I wanted to know if there's an easier way? </p>

<p>for example, I want to create an array of <code>Point</code> and they will all have <code>(0,0)</code> or increment <code>x,y</code> by their index. </p>
