
컬렉션은 수집이라는 단어 의미 그대로 다수의 객체를 수집해놓은 객체를 의미한다. 자바에도 컬렉션이 존재하지만, 코틀린은 그 특성 처럼 read - only, mutable interface 모두 제공한다. Note that a mutable collection doesn't have to be assigned to a var. Write operations with a mutable collection are still possible even if it is assigned to a val. The benefit of assigning mutable collections to val is that you protect the reference to the mutable collection from mo..