3 ms·
Does it really need the toss/return syntax to loop? You could use let loop = func(state, self) { let next = foo(state); self(foo); };
by yccs27 3y ago
Does it really need the toss/return syntax to loop? You could use
let loop = func(state, self) {
let next = foo(state);
self(foo);
};
loop(start, loop);