How to create an immutable array within a mutable array in scala

visit shbcf.ru