You are viewing a single comment's thread. Return to all comments →
A scala solution using flatMap
flatMap
val s: String = scala.io.StdIn.readLine.trim val t: String = scala.io.StdIn.readLine.trim println((s,t).zipped.flatMap{List(_,_)})
Seems like cookies are disabled on this browser, please enable them to open this website
String Mingling
You are viewing a single comment's thread. Return to all comments →
A scala solution using
flatMap