Skip to content

Instantly share code, notes, and snippets.

@progrium
Created May 23, 2011 03:02
Show Gist options
  • Select an option

  • Save progrium/986142 to your computer and use it in GitHub Desktop.

Select an option

Save progrium/986142 to your computer and use it in GitHub Desktop.
function repeat(times:int, loop:Function) {
for (i=0;i<times;i++){
loop.call();
}
}
repeat(10, function() {
// stuff
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment