For
The following samples demonstrate the foreach iterator. Assume a collection of fruits (apple, strawberray) or an associative collection of fruits with the items apple->green and strawberry->red. The foreach iterator will print the fruits, or if the language is capable of key-value iterations, it will print the fruit and color.