Learning Kotlin: Lambda expressions

This was based on kotlin docs, but when trying the code i have some questions and get to solve it & understand it and decided to document it here.