I have a scala list which looks like:
val list = List("2.56.7", "1.34.67")
I want a O/P like this:
List(List("2", "56", "7"), List("1", "34", "67")
I tried the below snippet but didnt work:
list.map(_.split("\\."))
I want a O/P like this:
List(List("2", "5", "6"), List("1", "34", "67")