Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
元:
val ids = "1,2,3" var result = ids.split(",")
Scalaで文字列配列を長い配列に変換する必要があります
val ids = "1,2,3" val result = ids.split(",").map(_.toLong) result: Array[Long] = Array(1, 2, 3)