title: Return type vararg?
body: <p>I have a method like:</p>
  
  <pre><code>void foo(int x, Grok... groks);
  </code></pre>
  
  <p>There's no way to define a method that returns a type of varargs, right? Ideally I want an additional util method:</p>
  
  <pre><code>foo(25, new Grok(), new Grok(), generateMoreGroks());
  
  public Grok... generateMoreGroks() {
      return new Grok[] {
          new Grok(), new Grok(), new Grok() };
  }
  </code></pre>
  
  <p>right?</p>
  
  <p>---- More info --------------</p>
  
  <p>The issue with the above is that we can't mix a few Grok instances allocated there with an array of Groks:</p>
  
  <pre><code> "new Grok(), new Grok(), generateMoreGroks());"
  </code></pre>
  
  <p>and I don't think that's legal, unless you could define a method to return a type of vararg (I guess).</p>
  
  <p>Thanks</p>