If I have a case class like below:
case class Student(name: String, activities: Seq[String], grade: String)
And I have a List like this:
val students = List(
Student("John",List("soccer","Video Games"),"9th"),
Student("Jane",List("sword fighting","debate"),"10th")
)
How can I convert the entire thing into a string like below:
johnsoccervideogames9thjaneswordfightingdebate10th
I'd like to take an MD5 has of this string.
toStringmethod of the case classtoStringon a case class just for a one time use seems like a really bad idea...