Any particular reason why this method is proposed just for mutable.ArrayBuffer
, rather than mutable.Buffer
? ArrayBuffer
is meant to be just one implementation for Buffer
, so you would expect the API to be the same.
As @NthPortal is alluding to, Array
is a fixed-size collection, while Buffer
is designed to change size, so they are not analogous.