×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Groovy
Posted by: DFirst PLast
Added: Oct 2, 2017 4:51 PM
Views: 8
  1. int a=10
  2. int b=0
  3. println "a is ${a} , b is ${b}"
  4. (a,b)=f1(a)
  5. println "a is NOW ${a} , b is NOW ${b}"
  6.  
  7. def f1(int x) {
  8.     return [x*10,x*20]
  9. }