JetBrains has published the production release of Kotlin 1.7.20, a planned upgrade to the programming language that introduces an operator for creating open-ended ranges and includes more work on the high-performing K2 compiler, which is still in development.
The production version was unveiled on September 29. With Kotlin 1.7.20, a new ..< operator enables the creation of open-ended ranges. While Kotlin already has the .. operator to express a range of values, the ..< operator acts like the until function and helps with defining the open-ended range. Research has shown that the new operator does a better job at expressing open-ended ranges and making it clear that the upper bound is not included.