我希望在普通 JVM Kotlin 中拥有类似 Android Compose 的
remember(key) { init }
不,没有内置方法可以做到这一点。您必须做一些自定义的事情,尽管您可能会发现研究
Lazy