Smorg
12/24/2018, 4:49 AMShawn
12/24/2018, 4:50 AMget()Shawn
12/24/2018, 4:51 AMprivate val _foo = Foo()
val OtherType.foo: Foo
get() = _fooSmorg
12/24/2018, 4:55 AMShawn
12/24/2018, 4:56 AMShawn
12/24/2018, 4:56 AMserebit
12/24/2018, 4:57 AMMutableMap with the class instance as the key and the property as the valueserebit
12/24/2018, 4:58 AMShawn
12/24/2018, 4:58 AMShawn
12/24/2018, 4:59 AMMap rather than a MutableMapShawn
12/24/2018, 5:00 AMSmorg
12/24/2018, 5:06 AMserebit
12/24/2018, 6:49 PMprivate val map = mutableMapOf<Int>().withDefault { 0 }
val Foo.bar get() = map[this]Shawn
12/24/2018, 6:52 PMmap is private within FooShawn
12/24/2018, 6:53 PMserebit
12/24/2018, 6:53 PM