Niech słowo kluczowe w Kotlin
let takes the object it is invoked upon as the parameter and returns the result of the lambda expression.
fun main(args: Array<String>) {
var str = "Hello World"
str.let { println("$it!!") }
println(str)
}
The 'it' keyword contains the copy of the property inside let. In this case "Hello world"
//This prints:
//Hello World!!
//Hello World
Ivan Drago