Skip to content

Instantly share code, notes, and snippets.

@changtimwu
Created February 25, 2015 03:01
Show Gist options
  • Save changtimwu/05f0b688e90ea9896e7c to your computer and use it in GitHub Desktop.
Save changtimwu/05f0b688e90ea9896e7c to your computer and use it in GitHub Desktop.
afunc = (arg0, arg1, arg2)->
console.log 'arg0:', arg0
console.log 'arg1:', arg1
console.log 'arg2:', arg2
afunc 1,2,3
afunc 1,
2
3
afunc(
1,
2,
3
)
###
afunc
"haha"
2
3
###
#
afunc [1,2],
2
3
afunc
m:1,n:2
2
3
###
afunc
2,
m:1,n:2,
3
###
###
afunc [1,2],3
afunc m:1, n:2, 3
afunc {m:1},{n:2},3
afunc m:1,
3, 4, n:2
###
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment