Skip to content

Instantly share code, notes, and snippets.

@kulicuu
Last active September 7, 2016 08:05
Show Gist options
  • Select an option

  • Save kulicuu/5717a6a2a49fa7584e6c0bfe15929203 to your computer and use it in GitHub Desktop.

Select an option

Save kulicuu/5717a6a2a49fa7584e6c0bfe15929203 to your computer and use it in GitHub Desktop.
passing multiple functions to CoffeeScript function :... we use parens in CS, when necessary. this is one of those times
c = console.log.bind console
func_001 = (fn1, fn2, fn3) ->
fn1()
fn2()
fn3()
func_001(
->
c "argfunc1"
c 'etc'
->
c "argfunc2"
c 'etc'
->
c "argfunc3"
c 'etc'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment