Method Call Chaining

We'll cover the following...

Two lessons ago, we had an exercise to rewrite this main function to not use any let statements:

Press + to interact
fn main() {
let fruit = new_fruit();
let fruit = increase_fruit(fruit);
print_fruit(fruit);
}

The solution to this exercise is:

Press + to interact
fn main() {
print_fruit(increase_fruit(new_fruit()));
}

Lots of people consider this kind of code ...