Kotlin Scope Functions Tutorial - let, run, with, apply and also

preview_player
Показать описание
Welcome to Kotlin Scope Functions Tutorial. In this video we will see all the available kotlin scope functions in Kotlin standard library.

Scope functions in kotlin are used to form and execute a temporary scope with an object.

0:00 What are Kotlin Scope Functions?
0:45 Differentiating Scope Functions
2:14 Example Class
2:48 Let
6:20 Run
7:50 With
9:48 Apply
10:55 Also

If you are having difficulties navigating from one lesson to another, then click on this link and it will open the complete playlist of this Kotlin Object Oriented Programming. In this playlist all lessons are already arranged in chronological order.

All the codes about this Kotlin Android Tutorial for Beginners are organized sequentially in this repository

And if you need more support, then you can join the Simplified Coding’s Quora Space to post your questions.

If you want to get in touch with me; you can find my contact details here:

Finally, If you love my content please SHARE my courses to your friends. You can share this course to your Facebook, WhatsApp etc.

For more contents related to Software Development visit my website.

You can SUPPORT me if you want
👉 PayTM (India Only): +917549161079

You can also check some of my other courses from these links

❤️❤️ Thank You All for the Love and Support ❤️❤️

#KotlinOOP
#OOPsConcept
#LearnKotlin
Рекомендации по теме
Комментарии
Автор

Nice video! But you did a mistake explaining with. You still referred to square when it should be this. But easy to miss these things :)

dahlola
Автор

This tutorial is very helpful. My all concepts cleared about scope function

dikshakoratkar
Автор

please dive a little deep into how they are working and why we have 5 different scope functions

saquibsiddique
Автор

I think it'd be nice if you could explain the difference in this vs. it as well. I kinda understood the concept, but had to look it up myself for the difference between those keyword to make sure I didn't miss anything

silvahawk
Автор

very nice video on how to use scope functions

manyantra
Автор

If we can't return this, it also work
In which situation, it's not updating value

kishorramani
Автор

Pl make some videos on covariance and contravariance in kotlin. I don't undestsnd the meaning of out keyword in kotlin. No youtuber from our country has yet made any video to clear this concept. It will be your great favour to me if you make video
on covariance and contravariance in kotlin

SAJJADAHMAD-uyhu
Автор

Hi run and with are almost same? Instead run is better because less code?

abbasalidaruwala
Автор

hello, video are good but still how we can use scope function differently? all are done same kind of task with its objects.

thakurgopaldangi
Автор

I still don't get the difference between them. They appear pretty similar to be, maybe adding some use cases would help. I only use let and apply. The rest I don't know where to use them.

TheKamble
Автор

Usage in android:

Intent(this, SignupActivity::class.java)
.apply{
putStringExtra(SCOPE_KEY, "admin")
}
.also{it ->
startActivity(it)
}

vengateshm
Автор

good video but what the difference between it n this

ss-xnrw
Автор

i dont konw whats different with them,there are almost the same。so i just get one which i prefer。

prometheusli