https://kotlinlang.org logo
d

diesieben07

12/12/2017, 8:19 PM
Actually that will do the computation every time the property is accessed, which might not be what you want. In that case use a factory method (or a "fake constructor", i.e.
operator fun invoke
in
companion object
).