You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 20, 2018. It is now read-only.
I've always understood Enumerable.generate() to approximate for-loop style control flow. Is this wrong? Whereas the for-loop prints nothing, the generate example prints an undefined value to the console.
vararr=["a","b","c"];for(vari=3;i<arr.length;++i){console.log(arr[i]);}// prints nothing
vararr=["a","b","c"];Enumerable.generate(3,function(i){returni<arr.length;},function(i){returni+1;},function(i){returnarr[i];}).forEach(console.log.bind(console));// prints `undefined`