Update README.md
This commit is contained in:
@@ -80,7 +80,7 @@ val bytes = num.toBytes(Endian.LITTLE)
|
|||||||
### Caching delegate property
|
### Caching delegate property
|
||||||
```kotlin
|
```kotlin
|
||||||
class Label {
|
class Label {
|
||||||
val font = "Arial 11"
|
var font = "Arial 11"
|
||||||
val fontWith by caching(::font) {
|
val fontWith by caching(::font) {
|
||||||
someFunctionToCalculate(it)
|
someFunctionToCalculate(it)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user