Skip to content
0:00 / 0:00

#kotlin#rangeuntil#operators

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

Kotlin by JetBrains

100K subscribers • 61 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Sebastian Aigner, Developer Advocate at JetBrains
  • Linked in the descriptionKotlin/KEEP
  • Made by the vendor. The company whose product it covers made or sponsored it.

Intermediate. Assumes working knowledge.

19K views4 years ago1 recommendation

Programming languagesKotlinLanguage design and type systems

Sebastian Aigner explains Kotlin's rangeUntil operator and how it enables true open-ended ranges without workarounds.

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 (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: github.com/Kotlin/KEEP/blob/open-ended-ranges/proposals/open…

Why it's here

1 person recommends this

What people say. Recommended by the Kotlin team to understand the design and benefits of the new rangeUntil operator.

u/Anisim_1Kotlin teamin r/Kotlin • Recommends

The rangeUntil, or “..<” operator, is a new way to create open-ended ranges! You might think of it as just an alias for the ”until” function, but that would mean missing some powerful new things. Let Sebastian give you a rundown of these new features 👇