Basically, I have an array like this:
val base_length = Array( 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 20, 24, 28, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 0 );
And when scala sees this, he wants to do it:
base_length: Array[Int] = Array(...)
But I would prefer to do this for this:
base_length: Array[Byte] = Array(...)
I tried:
val base_length = Array[Byte](...)
But scala says:
<console>:4: error: type arguments [Byte] do not conform to method apply type parameter bounds [A <: AnyRef] val base_length = Array[Byte](1,2,3,4,5)
It seems to me that basically I'm saying that the Array constructor wants to figure out what type of array is the argument. This is usually awesome, but in this case I have good reason for the elements of the array to be Byte s.
I was looking for a guide for this, but it looks like I can't find anything. Any help would be great!