코틀린에서는 가변과 불편이라는 2가지 타입의 클래스를 제공한다. List는 불변 타입이므로 size(), get() 함수만 제공하고 데이터를 추가하거나 변경하는 add(), set() 함수는 제공하지 않는다. 그런데, MutableList는 가변타입이므로 size(), get() 함수 이외에 add(), set() 함수를 이용할 수 있다. MutableList는 mutableListOf() 함수로 만들 수 있다. fun main() { var mutableList = mutableListOf(10,20,30) mutableList.add(3,40) mutableList.add(0,50) println( """ list size : ${mutableList.size} list data : ${mutable..