Beginner Kotlin
Q41 / 100

What is a Pair in Kotlin?

Correct! Well done.

Incorrect.

The correct answer is B) A data class holding two values, accessible via .first and .second

B

Correct Answer

A data class holding two values, accessible via .first and .second

Explanation

Pair<A, B> is a data class with first and second properties. You can create one with Pair(a, b) or the infix to function: a to b.

Progress
41/100