Grouping Data

Summary

Arrays and loops are closely associated in imperative programs. It is tempting to always assume that a FOR-loop is required, but more solutions involve WHILE-loops, particularly when it is not always necessary to examine every element in the array.

Multiple outputs may be cleanly returned from a procedure by bundling them into custom-defined records.

To
Previous Page

To Overview