40
rated 0 times
[
41]
[
1]
/ answers: 1 / hits: 18381
/ 8 Years ago, mon, may 2, 2016, 12:00:00
We dont use for loop
in functional programming, instead, we use higher order functions
like map, filter, reduce etc. These are fine for iterating through an array.
However, I wonder how do I do a simple counter loop.
let i = 0;
for( i; i < 10; i++) {
console.log( functional programming is a religion)
};
So, how would one do this in functional programming?
More From » loops