• xarvosOP
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    3 years ago

    Kotlin has one (well, more like keyword, but aren’t operators just keywords written in non-alphabetic) downTo

    • Ephera
      link
      fedilink
      arrow-up
      2
      ·
      3 years ago

      It wouldn’t have surprised me at all, if they did (they love their keywords), but that one actually isn’t a keyword. It’s an extension method implemented for the various number types, so you can also write 5.downTo(1).