Skip to content

Instantly share code, notes, and snippets.

@tgk
Created December 7, 2011 13:31
Show Gist options
  • Save tgk/1442810 to your computer and use it in GitHub Desktop.
Save tgk/1442810 to your computer and use it in GitHub Desktop.
fns = []
for ch in ["A", "B", "C"]
do (ch) ->
fns.push -> console.log ch
for f in fns
f()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment