![]() ![]() Let us create a range from 1 to 9 using the. operator and the rangeTo() function, let's cover them one by one. ![]() Kotlin: Create a rangeĪs we mentioned above, we can either use the. We can create a range with the help of rangeTo() function in Kotlin or using the. The range may also have a step (step is used to jump numbers or characters while defining the range from start to end boundaries). The boundary points are start & end and both of them are included in the range. In the mathematical sense, a range is a sequence of numbers, characters, etc. In this tutorial, we will discuss about range in Kotlin. ![]()
0 Comments
Leave a Reply. |