SetIterator.new Method

Creates a new iterator for a set.

Syntax

public void new(Set set)

Run On

Called

Parameters

  • set
    Type: Set Class
    The set to iterate over.

Remarks

The iterator is positioned at the first value in the set, if the set is not empty.

Examples

The following example creates a set of integers and then creates an iterator for that set

Set s1 = new Set (Types::Integer); 
SetIterator it; 
  
it = new SetIterator(s1);

See Also

SetIterator Class

Set Class