0
我必須從Array
中刪除所有List
元素。如何從數組中刪除所有列表元素?
scala> var numbers=Array("321","3232","2401","7777","666","555")
numbers: Array[String] = Array(321, 3232, 2401, 7777, 666, 555)
scala> var nums=List("321","3232","2401")
nums: List[String] = List(321, 3232, 2401)
filter
會在這裏有用嗎?