Anonymous user
Align columns: Difference between revisions
→{{header|Scala}}
Line 1,309:
val lines = scala.io.Source.fromFile("c:\\text.txt").getLines.map(_.trim())
val words = lines.map(_.split("\\$").toList).toList
val lens = words.map(l => l.map(
var maxlens = Map[Int,Int]() withDefaultValue 0
|