Try breaking it up into a few steps.

val choices:Seq[(String,String)] = ("","") :: (all the rest of your options here)

scala> ("","")::List(("c","d"), ("d","e"))  
res8: List[(java.lang.String, java.lang.String)] = List((,), (c,d), (d,e))

Then use that choices var as input to the method. There's nothing preventing this approach from working.


Example of I82Much has problems with compiling and shows errors. I have modified his answer and have no problems. Tested.

define variable:

val choices = List(("",""), ("S", "Storage"))

and then use it

"strType" ->, Empty, storage.strType(_), "class" -> "smallInputSelect"),

Related Query

More Query from same tag