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