I wish to create an alias for a method which takes a vararg parameter. However, I’m going wrong somewhere. I understand this is a sort of currying.
I’m sure it’s a simple one!
scala> def aQuiteLongName(args: String*) = None // a computation of some sort
aQuiteLongName: (args: String*)None.type
scala> def short = aQuiteLongName _
short: Seq[String] => None.type
scala> short(“as”, “dd”)
:25: error: too many arguments (2) for method apply: (v1: Seq[String])None.type in trait Function1