Remarks

An iterator is a method, get accessor, or operator that performs a custom iteration over an array or collection class by using the yield keyword