
In this case, the Progression object will be created. Suppose we want to create a sequence of numbers from the largest number number to the smallest one. In Kotlin defined specific types for arithmetic progressions of Char, Int and Long. Ranges are defined for comparable types: having an order, you can define whether an arbitrary instance is in the range between two given instances.

In the end, we create a custom range for the delivery time of a restaurant base on open and close time.

Let's explore Ranges in Kotlin and understand how it can simplify development.
