Kotlin Functions as Expressions. One line functions. Kotlin Android Tutorial. #7.2

preview_player
Показать описание

Kotlin Tutorial for beginners. Learn how to use Functions as Expressions in kotlin. The function as whole in kotlin can return some value. So lets explore this.

.
Please donate and support my work
(If you think my free tutorials are better than paid ones :)

Free Programming courses:

Free Flutter course:

Free Android courses:

More free programming courses:

Check out my website:

Let's get in touch! [Sriyank Siddhartha]

---- Thank you for your love and support ----
Рекомендации по теме
Комментарии
Автор

i ate gobi today and it's delicious.

adventures
Автор

are formal parameter constant ( val ) in kotlin ?

corporateexplorer
Автор

so we only change "{" to "=" after defining data type as Int. But why shouldn't I write the function as usual instead of writing it as expression? Like this I mean:
fun max(a:Int, b:Int):

quadriplus
Автор

I will stick with traditional way of expressing function.

PrakashBesra
join shbcf.ru