2 ms·
Not really, it's just a way to make your code more expressive in a different way, I can see it helping in some cases since arrays are zero-indexed. arr.first i
by Karunamon 12y ago
Not really, it's just a way to make your code more expressive in a different way, I can see it helping in some cases since arrays are zero-indexed.
arr.first is more immediately expressive to me than arr[0] - but this is a matter of opinion :)