Open RavenHursT opened 6 years ago
The solution here contains some mutable variables and a for loop (.forEach()): https://github.com/timoxley/functional-javascript-workshop/blob/master/exercises/recursion/solution/solution.js
.forEach()
Just thought I'd submit my functional solution that came out a bit closer to a purely functional one: https://repl.it/@RavenHursT/Functional-JS-Workshop-Exercise-16-Solution
The solution here contains some mutable variables and a for loop (
.forEach()
): https://github.com/timoxley/functional-javascript-workshop/blob/master/exercises/recursion/solution/solution.jsJust thought I'd submit my functional solution that came out a bit closer to a purely functional one: https://repl.it/@RavenHursT/Functional-JS-Workshop-Exercise-16-Solution