Kotlin Pair Class
Introduction In Kotlin, the Pair class is used to store two related values. It is a simple data structure that holds a pair of values, which can be of different types. The Pair class is useful when you need to return two values from a function, or when you want to group two related values …