natpryce
02/04/2019, 8:15 AMAndrew Gazelka
02/04/2019, 3:15 PMobject Test {
val list = arrayListOf("a","b","c")
}
fun testerSomething() = Test.list.joinToString()
natpryce
02/04/2019, 3:16 PMAndrew Gazelka
02/04/2019, 3:19 PMfun testerAdd() = Test.list.add("something")
i.e., for some type of manager classnatpryce
02/04/2019, 3:19 PMAndrew Gazelka
02/04/2019, 3:21 PMnatpryce
02/04/2019, 3:21 PMAndrew Gazelka
02/04/2019, 3:23 PMfun add(stored: Something)
fun update(stored: Something)
fun remove(stored: Something)
fun get(id: String): Something?
so it would need to be mutablenatpryce
02/04/2019, 3:23 PMAndrew Gazelka
02/04/2019, 3:24 PMnatpryce
02/04/2019, 3:24 PMAndrew Gazelka
02/04/2019, 3:24 PMnatpryce
02/04/2019, 3:25 PMAndrew Gazelka
02/04/2019, 3:26 PM