Variable Argument Lists
Do you know what vararg keyword is? Using this vararg, you can define a function that takes any number of argument.
87 posts · page 11 of 11
Do you know what vararg keyword is? Using this vararg, you can define a function that takes any number of argument.
Objects are the foundation for many modern languages, including Kotlin.
Alright. Who here think that testing is optional? Even though some doesn't write tests, I believe no one will openly say so. Oops. it hurts.
You can insert a value within a String using String templates. Remember to use a $ before the identifier name:
One of basic things that gives me a spark in the eye is when I realise in Kotlin that:
While there are many great features in Kotlin language, there are two features which are very impactful and outstanding.
Why Kotlin? I mean why we need Kotlin in this world. Don't we have enough of programming language already? This was exactly the question that I have when Kotlin was first heard back in 2016. And then…