Skip to content

Instantly share code, notes, and snippets.

@yenerm
Last active Nov 9, 2020
Embed
What would you like to do?
lazy() sample
<!-- Copyright 2020 Google LLC.
SPDX-License-Identifier: Apache-2.0 -->
class Person(name: String, lastname: String) {
val fullname: String by lazy() {
name + lastname
}
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment