Last active
September 7, 2016 08:05
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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