I've got a List[Any] that looks like:
val a: List[Any] = List(1, "a", "b", 2.0)
I also have a case class that looks like:
case class Data(field1: Int, field2: String, field3: String, field4: Double)
I'd like to instantiate a case class Data with the values from a to look like:
val d = Data(1, "a", "b", 2.0)
I know I can iterate through a, but for a large list that seems cumbersome.