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 has been 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`
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
@mattpodwysocki
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.The text was updated successfully, but these errors were encountered: