Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sequencer = function(lambdas) {
var self = this;
this.start = function() {
this.next();
}
this.next = function() {
if (lambdas.length != 0) {
lambdas.shift()(function() {
self.next();
});
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment