Question : get list position of value scala
Answered by : george-mjorieqnzlng
scala> List(1,2,3,2,1).indexOf(2)
res1: Int = 1
Source : | Last Update : Fri, 30 Sep 22
Answered by : george-mjorieqnzlng
scala> List(1,2,3,2,1).indexOf(2)
res1: Int = 1
Source : | Last Update : Fri, 30 Sep 22