4

NEW OPERATOR in Kotlin (and true open-ended ranges)

 1 year ago
source link: https://www.youtube.com/watch?v=v0AHdAIBnbs
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

NEW OPERATOR in Kotlin (and true open-ended ranges)

The rangeUntil operator, or is a new way to create open-ended ranges in Kotlin. You might think of this new operator as just an alias for the long-existing “until” function in Kotlin, but that would mean missing out on some powerful new things that weren’t possible before. Let Sebastian Aigner (https://twitter.com/sebi_io) give you a rundown of these new features, such as the ability to specify OpenEndRanges properly and without any workarounds, in an entirely backwards compatible manner.

Find out more details in the KEEP document for open-ended ranges and leave your feedback: https://github.com/Kotlin/KEEP/blob/o...

Show lessShow more


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK