3 lines
126 B
Scala
3 lines
126 B
Scala
|
|
val longest = scala.io.Source.fromFile(args.head).getLines.toIterable.groupBy(_.length).max._2
|
||
|
|
println(longest mkString "\n")
|