Converting scala list to array

3.3k Views Asked by At

When I try to do this, it works fine

  val list = List(1,2,3,4,5)

  val array = list.toArray

But I am trying to understand the implicits that happen behind the scenes. The signature of toArray is

[B >: Int](implicit evidence$1 : classTag[B])

Any explanation on what's happening would be good to know.

0

There are 0 best solutions below