I want to join two instance of ByteArray in Squeak, Cuis or Pharo Smalltalk
b := #[10 11 12 13] asOrderedCollection.
b addAll: #[21 22 23 24].
b asByteArray
Are there more efficient ways to do this?
Would concatenation be better...?
#[10 11 12 13],#[21 22 23 24 ]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With