No need to make an `Array(0, 1, 2, …, a.length)`, just use `0 until a.length` to make a more efficent `Range` object.