Skip to content

Instantly share code, notes, and snippets.

@michiel
Created October 1, 2010 09:24
Show Gist options
  • Save michiel/605977 to your computer and use it in GitHub Desktop.
Save michiel/605977 to your computer and use it in GitHub Desktop.
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