In eiffel, indexing usually starts from 1, not 0.
I have following 2 attributes:
arr: ARRAY[A]
link: LINKED_LIST[B]
For array, I can make its indexing starts from 0 purposely, like following:
arr.force (value, arr.count)
so that arr[0] will be readable.
However, I did similar thing to LINKED_LIST:
link.put_i_th (value, link.count)
However this gets precondition violation.
Is there any way to make LINKED_LIST indexing from 0, not 1? so that link[0] will be accessible?
I need an example if it is possible.