> there is no room in the type system to return an error
There is: you panic, like in the array case.
That would have been much robust (at the cost of performance).
There is: you panic, like in the array case.
That would have been much robust (at the cost of performance).