Because Kotlin is fun ;P

Exploring control flow in Kotlin

Rashi Karanpuria
AndroidPub
Published in
5 min readNov 2, 2017

--

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…

--

--

Rashi Karanpuria
AndroidPub

Software Engineer @ Google | Author of Kotlin Programming Cookbook | www.rashikaranpuria.com