Apresentação para trabalhar com estrutura de dados utilizando Kotlin
segue o github do código da apresetação
https://github.com/rviannaoliveira/PresentationKitToolsKotlin
8. Kotlin
"Immutable objects are particularly useful in concurrent
applications. Since they cannot change state, they cannot
be corrupted by thread interference or observed in an
inconsistent state."
https://docs.oracle.com/javase/tutorial/essential/concurrency/immutable.html
17. Standard functions
/**
* Calls the specified function [block] with `this` value as its
receiver and returns `this` value.
*/
@kotlin.internal.InlineOnly
public inline fun <T> T.apply(block: T.() -> Unit): T { block();
return this }
let with run apply also