Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Challenge #137 [Easy] String Transposition (
package dailyprogrammer
object StringTransposition extends App {
val words = Source.fromFile("D:/file.txt").getLines.toList.tail
val longestWord = words.maxBy(_.size)
val wordsTransposed =, ' ').toList).transpose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment