mardi 31 mars 2015

Scala convert list of Strings to multiple variables

I'm trying to convert a list of strings to multiple variables so that I can asign attributes to the conent of list.


MyCode:



val list = List("a", "b", "c", "d", "e", "f")
val attributes = Attributes(#SomeAwesomeScalaCode#)

case class Attributes(input:(String, String, String, String, String, String)) {
val a, b, c, d, e, f = input
}

Aucun commentaire:

Enregistrer un commentaire