Skip to content

Instantly share code, notes, and snippets.

@ishults
Last active December 16, 2015 20:09
Show Gist options
  • Save ishults/9ed73bc34f5097a567ba to your computer and use it in GitHub Desktop.
Save ishults/9ed73bc34f5097a567ba to your computer and use it in GitHub Desktop.
Simple multiple assignment in Groovy
def (foo, bar) = ['foo', 'bar'];
assert foo == 'foo'
assert bar == 'bar'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment