Iterator is a pointer to an element of a container. An iterator can be used to get or set element values, and it can be moved to point to the previous or the next element of the container.
Methods
get ( -- value ) returns a value the iterator points to
get ( -- { key value } ) returns a value the iterator points to
insertAfter ( value -- ) inserts an entry to a container after the iterator
insertBefore ( value -- ) inserts an entry to a container before the iterator
next ( -- iterator ) returns an iterator pointing to the next entry
prev ( -- iterator ) returns an iterator pointing to the previous entry
set ( value -- ) sets a value to an element the iterator points to
Tags
CONTAINER, ITERATOR, ARRAY_ITERATOR, LIST_ITERATOR, HASH_TABLE_ITERATOR, RED_BLACK_TREE_ITERATOR