It's mostly used for null safety, let's say I want...
# getting-started
k
It's mostly used for null safety, let's say I want to run some code only when a certain reference it not null, the code would look like:
Copy code
val str: String? = ...
str?.let{
    println(it)
}