Task

Show how to return more than one value from a function.




class Program {
  function : Main(args : String[]) ~ Nil {
    a := IntHolder->New(3); b := IntHolder->New(7);
    Addon(a,b);
    a->Get()->PrintLine(); b->Get()->PrintLine();
  }
 
  function : Addon(a : IntHolder, b : IntHolder) ~ Nil {
    a->Set(a->Get() + 2); b->Set(b->Get() + 13);
  }
}