Scala: how to specify varargs as type?
- by IttayD
Instead of
def foo(configuration: (String, String)*)
I'd like to be able to write:
type Configuration = (String, String)*
def foo(configuration: Configuration)
The main use case is to provide an easy method signature when overriding in subclasses