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.
私は機能を持っています:
def test(ints: Int*) = ints.foreach(println(_))
Array[Int] または Seq[Int] を Int* に変換する方法は?
それが_*型帰属の目的です。
_*
def test(ints: Int*) { ints foreach println } val l = List(1, 2, 3) test(l:_*) // 1 // 2 // 3