In the previous lesson, each stage worked with a whole order. But the order's items lie in the items array, and the question "how many cappuccinos were sold" is about lines, not orders. At the sorting table, a barista would cut the order card into strips, one per line. The order card holds no item name, only its number, so the barista would have to fetch the name from the menu box.
In this lesson
- Document shape
- Unwinding an array
- Joining collections
- Stage order
- Common mistake
- Key points