๐`kotlin // โโโ Variable number of arguments โโโ fun printAll(vararg items: String) { forโฆ
Topic 6
๐ 6. Local Functions
โจ`kotlin // โโโ Function ke andar function โโโ fun processUser(name: String, age: Int) {โฆ
Topic 7
๐ 7. Extension Functions (Preview)
๐`kotlin // โโโ Existing class me naye functions add karo! โโโ funโฆ
Topic 8
๐ 8. Infix Functions
๐`kotlin // โโโ Infix โ operator style call โโโ infix fun Int.power(exp: Int): Int { varโฆ
Topic 9
๐ 9. Function Types Summary
๐` โโโโโโโโโโโโโโโโโโโโโโโโโโฆโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ Type โ Example โโฆ
Topic 10
โ Summary
๐กKEY POINTS: - fun: function declare karo โ fun name(params): ReturnType - Unit: voidโฆ
Quick Quiz
Quiz โ Question 1
๐ Kotlin โ Functions ka sabse sahi definition kya hai?