Kotlin For Beginners Tutorial (Functions Part 2: Default/Named Args,  Single-Expression, Vararg)

Kotlin For Beginners Tutorial (Functions Part 2: Default/Named Args, Single-Expression, Vararg)

AstrosCoding

2 года назад

55 Просмотров

Today we learn more interesting stuff about functions in Kotlin. How to declare default values for a function's argument, how to use named functions, and how to write a function with a single expression. Lastly, we learned how we could use the vararg keyword to specify a list of arguments.

Timestamps:
0:00 Intro
0:19 Last video revision
1:03 Default arguments
2:55 Named arguments
5:10 Single-expression function
6:57 Vararg keyword

Kotlin For Beginners Playlist
https://www.youtube.com/playlist?list=PLjTiv7h4trxPBJT7tI8BeMnLAT35RwKx2

Regular coding posts on Instagram
https://www.instagram.com/astroscoding/

Regular coding tips on Twitter
https://twitter.com/astroscoding

If you liked my Youtube content buy me a coffee at
https://www.buymeacoffee.com/astroscoding

Тэги:

#kotlin_tutorial_for_beginners #kotlin_tutorial #kotlin_programming #kotlin_course #kotlin_android #programming #kotlin #android_kotlin #operators #kotlin_crash_coruse #if_else_kotlin #when_kotlin #if_else_when_kotlin #kotlin_conditionals #if_else #readLine #readln #readlnOrNull #getting_user_input #functions_in_kotlin #functions #fun #return_types #arguments #function_arguements #return_type #function_return_type #varargs #default_args #named_args #single-expression_function
Ссылки и html тэги не поддерживаются


Комментарии: