Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zythum/8470938 to your computer and use it in GitHub Desktop.
Save zythum/8470938 to your computer and use it in GitHub Desktop.
sun = (a, b...)->
where_is_my_func = 'your are not here'
unless b.length then a else b[0] += a; arguments.callee.apply @, b
where_is_my_func = -> 'I am here'
sun 1,2,3,4,5,6,7,8,9
console.log where_is_my_func
###################################
where_is_my_func = -> 'I am here'
sun = (a, b...)->
where_is_my_func = 'your are not here'
unless b.length then a else b[0] += a; arguments.callee.apply @, b
sun 1,2,3,4,5,6,7,8,9
console.log where_is_my_func
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment