Skip to content

Instantly share code, notes, and snippets.

@raph-amiard
Created December 25, 2010 13:30
Show Gist options
  • Save raph-amiard/754878 to your computer and use it in GitHub Desktop.
Save raph-amiard/754878 to your computer and use it in GitHub Desktop.
posterous post coffeescript example 3
func1 = (args={c:30, d:50}) ->
args.c + args.d + func2(args)
func2 = ({a, b}) ->
a = 15 if not a?
b = 10 if not b?
a + b
func1 {c:3, d:5}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment