You are viewing a single comment's thread. Return to all comments →
println(scala.io.StdIn.readLine().foldLeft("")((acc:String , x) => if (acc.contains(x)) acc else acc + x))
Seems like cookies are disabled on this browser, please enable them to open this website
Remove Duplicates
You are viewing a single comment's thread. Return to all comments →