end
# Create an array with some `items'.
- init with(objects: E...)
+ init with_items(objects: E...)
do
_items = objects._items
_capacity = objects._capacity
end
# The internal storage.
- attr _items: NativeArray[E]
+ attr _items: NativeArray[E] = null
# The size of `_items'.
- attr _capacity: Int
+ attr _capacity: Int = 0
end
# An `Iterator' on `AbstractArray'
_index = 0
end
- redef readable attr _index: Int
+ redef readable attr _index: Int = 0
attr _array: AbstractArray[E]
end
end
# The last positive result given by a index(1) call
- attr _last_index: Int
+ attr _last_index: Int = 0
# Where is the `key' in `_item'?
# return -1 if not found