I'm reading a .csv file that returns a list of String lists, recipiesList, in the following format:
List(List(Portuguese Green Soup, Portugal), List(Grilled Sardines, Portugal), List(Salted Cod with Cream, Portugal))
I have a class Recipe, which has been defined in the following manner:
case class Recipe(name: String, country: String)
Is there any immediate way that I can transform recipiesList into a list of type List[Recipe]? Such as with map or some sort of extractor?