Examveda

What is to in the example below:
val test = 33 to 42

A. A Kotlin keyword to create a Pair(33, 42)

B. A syntax error

C. A Kotlin keyword to create a Range from 33 to 42

D. An infix extension function creating a Pair(33, 42)

Answer: Option D


This Question Belongs to Computer Science >> Kotlin Program

Join The Discussion

Related Questions on Kotlin Program

What is Kotlin?

A. A new version of Java.

B. A JavaScript framework.

C. A statically-typed programming language for the JVM, Android, and browser.

D. A database management system.