main_solution1/drumb.scala
changeset 384 6e1237691307
parent 348 b5b6ed38c2f2
child 396 3ffe978a5664
--- a/main_solution1/drumb.scala	Mon Dec 07 01:25:41 2020 +0000
+++ b/main_solution1/drumb.scala	Fri Jan 15 02:40:57 2021 +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