Scala collections have a bunch of readable and almost readable operators like :+ and +:, but why aren’t there any human readable synonyms like append?
Scala collections have a bunch of readable and almost readable operators like :+ and
Share
All mutable collections in Scala have the BufferLike trait and it defines an append method.
Immutable collections do not have the BufferLike trait and hence only define the other methods that do not change the collection in place but generate a new one.