How to make this code more functional, where a value from the current iteration is preserved into the next (variable How to make this code more functional, where a
How to make this code more functional, where a value from the current iteration is preserved into the next (variable How to make this code more functional, where a