Campbell Ritchie (63) [Avatar] Offline
Let's look at the bottom of page 69/top of page 70. There are five numbers in blobs, three simply called "intermediate operation". Is it worth adding something to remind you what they do, e.g.
  • 1=Create a Stream<Dish>
    2=Intermediate operation creating second Stream<Dish> with calories...
    3=Intermediate operation creating Stream<String>
    4=Intermediate operation creating second Stream<String> limited to first three.
    5=Converts the Stream to a List<String>
  • ? Similarly for other numbers in blobs.
    Also, your IDE will probably give you the types if you hover your mouse on the right bit of code.