data class Lotharschulz (
val passion: List<String> = listOf<String>("Leadership", "Software", "Engineering"),
val naturalLanguages: List<String> = listOf<String>("de", "en"),
val programmingLanguages: List<String> = listOf<String>("Kotlin", "Java", "Python", "Typescript", "Golang"),
){
fun sayHi() = println("Hey there, nice to meet you ;-)")
}
fun main() = println(Lotharschulz().sayHi())
lotharschulz / destructiondeclarationscustomdataclasses Goto Github PK
View Code? Open in Web Editor NEWDestructuring declarations together with non-trivial custom data classes.
Home Page: https://twitter.com/kotlin/status/1276083456854941697