current

current(value: Any output): Boolean;

The current method of the Iterator class returns the last value iterated by using the next or back method.

The current method returns true if the iterator is positioned on an entry in the collection, or it returns false if the iterator is reset or it is positioned beyond the start or end of the collection.

The value parameter receives the entry of the current iterator position in the collection and must be of the same type as the members in the collection.