Because Kotlin is fun ;P

Exploring control flow in Kotlin

One of the things we learn very early when learning a programming language is control flow. Usually apart from minute syntax changes, mostly the code remains same for most programming languages. But there are some interesting things in Kotlin that makes its control flow special. The different thing in Kotlin is that we can use some of the control flow statements as expressions. Why is this important? and how and when to use it? are…