Can you implement a while loop inside a curried arrow function expression? I would like to be able to express a while loop as an expression.
var arr = [1,2,3,4,5,6];
var len = arr.length;
const iter = i => while(() => (console.log(i), ()=>i--);
iter(len);