Answers for "different between also and let4"

0

different between also and let4

data class Person(var name: String, var tutorial : String)
var person = Person("Anupam", "Kotlin")

var l = person.let { it.tutorial = "Android" }
var al = person.also { it.tutorial = "Android" }
    
println(l)
println(al)
println(person)
Posted by: Guest on October-18-2021

Code answers related to "different between also and let4"

Browse Popular Code Answers by Language