+
Point of view
All features
deferred class ITERATOR [E_]
Summary
Class invariant
Overview
Features
  • is_valid: BOOLEAN
  • start
    Positions the iterator to the first object in the aggregate to be traversed.
  • is_off: BOOLEAN
    Returns True when there are no more objects in the sequence.
  • item: E_
    Returns the object at the current position in the sequence.
  • next
    Positions the iterator to the next object in the sequence.
Check that the underlying traversable has not changed
Agent-based features:
Invariant on generation` dynamics
is_valid: BOOLEAN
frozen
effective function
start
deferred procedure
Positions the iterator to the first object in the aggregate to be traversed.
is_off: BOOLEAN
deferred function
Returns True when there are no more objects in the sequence.
item: E_
deferred function
Returns the object at the current position in the sequence.
next
deferred procedure
Positions the iterator to the next object in the sequence.
iterable_generation: INTEGER_32
deferred function
generation: INTEGER_32
deferred function
for_each (action: PROCEDURE[TUPLE[TUPLE 1[E_]]])
effective procedure
Apply action to every item of Current.
for_all (test: FUNCTION[TUPLE[TUPLE 1[E_]]]): BOOLEAN
effective function
Do all items satisfy test?
exists (test: FUNCTION[TUPLE[TUPLE 1[E_]]]): BOOLEAN
effective function
Does at least one item satisfy test?
aggregate (action: FUNCTION[TUPLE[TUPLE 2[E_, E_], E_]], initial: E_): E_
effective function
Aggregate all the elements starting from the initial value.
generation_for_invariant: INTEGER_32
writable attribute
generation_only_grows: BOOLEAN
effective function