core :: DowntoIteratorRange :: _item
core :: DowntoIteratorRange :: item=
core $ DowntoIteratorRange :: SELF
Type of this instance, automatically specialized in every classcore $ DowntoIteratorRange :: init
core :: DowntoIteratorRange :: _item
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: IndexedIterator :: defaultinit
core :: Object :: defaultinit
core :: Iterator :: defaultinit
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 :: DowntoIteratorRange :: item=
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).
# Iterator on ranges.
private class DowntoIteratorRange[E: Discrete]
super IndexedIterator[E]
var range: Range[E]
redef var item is noinit
redef fun index do return _item.distance(_range.first)
redef fun is_ok do return _item >= _range.last
redef fun next do _item = _item.predecessor(1)
init
do
_item = _range.first
end
end
lib/core/collection/range.nit:223,1--238,3