Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify listAux #36

Open
nixnax opened this issue Jul 10, 2015 · 1 comment
Open

Simplify listAux #36

nixnax opened this issue Jul 10, 2015 · 1 comment

Comments

@nixnax
Copy link

nixnax commented Jul 10, 2015

Romain, this amazing piece of code absolutely freezes my brain!

Is there any way to break down the complexity a bit, such as getting rid of the function in a function in a function in a function?

if(i<taskNameList.length) setImmediate(function(){achieve(taskNameList[i][1],username(function(taskNameList,i,username,done) {
return function() {
        setImmediate(function(){listAux(taskNameList,i+1,username,done);});
    };
})(taskNameList,i,username,done))});
@rom1504
Copy link
Owner

rom1504 commented May 1, 2018

could be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants