In Scala, I can declare a byte array this way
val ipaddr: Array[Byte] = Array(192.toByte, 168.toByte, 1.toByte, 9.toByte)
This is too verbo
How about Array(192, 168, 1, 1).map(_.toByte)?
Array(192, 168, 1, 1).map(_.toByte)