Scala: how to specify varargs as type?
Posted
by IttayD
on Stack Overflow
See other posts from Stack Overflow
or by IttayD
Published on 2010-03-15T10:04:52Z
Indexed on
2010/03/15
10:09 UTC
Read the original article
Hit count: 252
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
© Stack Overflow or respective owner