Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In the preceding section, you saw the basic form of the for loop. However, this construct is much richer in Scala than in Java or C++. This section covers the advanced features.
You can have multiple generators of the form variable <- expression. Separate them by semicolons. For example,