DEV Community

Discussion on: The beauty of Functional Programming

Collapse
 
fannyvieira profile image
Fanny • Edited

Hi Marcelo, this is because the idea is show that you need create a new array in immutable data, and not only change a array element ;)