Skip to content

Instantly share code, notes, and snippets.

@aaronhanson
Last active December 17, 2015 14:19
Show Gist options
  • Save aaronhanson/5623284 to your computer and use it in GitHub Desktop.
Save aaronhanson/5623284 to your computer and use it in GitHub Desktop.
Stumbled onto similar code to this and had to double check what it did.
def foo(p1, p2=2, p3) {
println "$p1, $p2, $p3"
}
foo(10, 20)
// 10, 2, 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment