Iterator
on AbstractArray
core :: ArrayIterator :: _array
core :: ArrayIterator :: _index
core :: ArrayIterator :: array
core :: ArrayIterator :: array=
core :: ArrayIterator :: defaultinit
core :: ArrayIterator :: index=
core $ ArrayIterator :: SELF
Type of this instance, automatically specialized in every classcore :: ArrayIterator :: _array
core :: ArrayIterator :: _index
core :: ArrayIterator :: array
core :: ArrayIterator :: array=
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: IndexedIterator :: defaultinit
core :: ArrayIterator :: defaultinit
core :: Iterator :: defaultinit
core :: Object :: defaultinit
core :: ArrayIterator :: index=
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.Iterator
whose elements are sorted by the function
core :: Object :: output_class_name
Display class name on stdout (debug only).
# An `Iterator` on `AbstractArray`
private class ArrayIterator[E]
super IndexedIterator[E]
redef fun item do return _array[_index]
# redef fun item=(e) do _array[_index] = e
redef fun is_ok do return _index < _array.length
redef fun next do _index += 1
redef var index = 0
var array: AbstractArrayRead[E]
redef fun finish do _array._free_iterator = self
end
lib/core/collection/array.nit:556,1--573,3