title: Make partially apply function from java function
body: <p>I have java function like this</p>
  
  <pre><code>public static CollectionReader createCollectionReader(
          Class&lt;? extends CollectionReader&gt; readerClass, TypeSystemDescription typeSystem,
          Object... configurationData) 
  </code></pre>
  
  <p>I'd like to make a partially apply function from this and specify some argument for Object... part. I am not sure if this is possible. I tried</p>
  
  <pre><code>val partiallyApply = createCollectionReader(_:Class[_ &lt;: CollectionReader], _:TypeSystemDescription,
                                             "IncludeGoldStandardAnnotations", new Boolean("true"), 
                                             "EndIndex", new Integer("-1"), _:_*) // Doesn't work
  </code></pre>
  
  <p>and want it to be use as</p>
  
  <pre><code>val reader = partiallyApply(classOf[someReader], someType:TypeSystemDescription, 
  "other", "configurationData", "beside", "those_four_that_already_applied_too"]
  </code></pre>
  
  <p>but this doesn't seems to work. Also, is this Object... has a technical name ?</p>
  
  <p>EDIT: change code a little bit (my mistake .. I forgot to put val name in it) and add example of usage I want to.</p>
  
  <p>EDIT2:I think my main question is that it is possible to do a partially apply function on vararg ?</p>
  
  <p>EDIT3: Thanks to elbowich's suggestion. I come up with</p>
  
  <pre><code>def createCollectionReaderReadAll(cls: Class[_ &lt;: CollectionReader], ts: TypeSystemDescription, cfg: AnyRef*) =
    createCollectionReader(cls, ts,
      Seq("IncludeGoldStandardAnnotations", new Boolean("true"), "EndIndex", new Integer("-1")) ++ cfg: _*)
  </code></pre>
  
  <p>work perfectly fine</p>