Over the last few pages, we have gotten to know various aggregate data types: arrays, struct, enums and unions.
With this background, let's examine several block-based statements designed to make it easier to work with various kinds of aggregate data:
- this blocks. Enables some block to focus its initialization or revision work on some complex value.
- each blocks. Enables some block to iterate over collection of values, including the elements of a collection.
- pattern matching. Chooses the logic block to evaluate based on the structure or values that lie within some aggregate value.