Skip to content
Snippets Groups Projects
Commit 72c4839c authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Fixed LocalFileLR to deal with a change in Scala IO sources

(you can no longer iterate over a Source multiple times).
parent 22b8fcf6
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ object LocalFileLR { ...@@ -15,7 +15,7 @@ object LocalFileLR {
} }
def main(args: Array[String]) { def main(args: Array[String]) {
val lines = scala.io.Source.fromFile(args(0)).getLines() val lines = scala.io.Source.fromFile(args(0)).getLines().toArray
val points = lines.map(parsePoint _) val points = lines.map(parsePoint _)
val ITERATIONS = args(1).toInt val ITERATIONS = args(1).toInt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment