DEV Community

Discussion on: Functional Programming Notes:

Collapse
 
awolokita profile image
awolokita

You mentioned immutability / pure functions and map yet used a for loop to mutate an array with push. It would be great to see the example taken further to show how getTea can be reduced down to a single line.

Collapse
 
rthefounding profile image
Randy Rivera

I’m constantly learning everyday so yes