Add two array [byte]?

Pretty straightforward problem that I can't find a good solution for:

val a1 = Array[Byte](1, 2, 3)
val a2 = Array[Byte](4, 5, 6)

How can I join these two arrays together? I don't mind if the first array is extended by the second.

This question and all comments follow the "Attribution Required."

All Answers

Answers Loading...
Leave a Reply
You must be logged in to post a answer.
About the author