def Absolute(root: String, components: Seq[String]) = new AbsoluteFilePath(root, IndexedSeq(components:_*))
My understanding is that internally, `components` will be expanded and passed to `IndexedSeq.apply` as an `Array[String]`. But what if components is already of type `IndexedSeq[String]`? Is there a concise way of simply passing on components without the unwrapping/IndexedSeq creation steps? I can think of one or two ways, but nothing that is as "nice" as the above...
Thanks,
Ken
No.
> But what if
> components is already of type `IndexedSeq[String]`?
Then you are in good shape. Java uses Array to represent varargs.
Scala uses Seq.