changeset 348 | b5b6ed38c2f2 |
parent 347 | 4de31fdc0d67 |
child 384 | 6e1237691307 |
--- a/main_solution1/drumb.scala Mon Nov 02 02:31:44 2020 +0000 +++ b/main_solution1/drumb.scala Mon Nov 02 13:10:02 2020 +0000 @@ -24,7 +24,7 @@ // strings for each line in the CSV-file. def get_january_data(symbol: String, year: Int) : List[String] = - Source.fromFile(symbol ++ ".csv")("ISO-8859-1").getLines.toList.filter(_.startsWith(year.toString)) + Source.fromFile(symbol ++ ".csv")("ISO-8859-1").getLines().toList.filter(_.startsWith(year.toString)) //test cases