/**
 * You are given two pairs containing information about two nurses. Your task is to compare their names using identity comparison operators and return true if they have the same name, and false otherwise.
 *
 * The first element of each pair represents the nurse's full name, while the second element represents their ID number.
 *
 * Implement the compareNurseNames function that takes the two nurse pairs as arguments, and return true if the nurses have the same name, and false otherwise.
 *
 * Example:
 * val nurse1 = Pair("Jane Doe", 1234)
 * val nurse2 = Pair("Jane Doe", 5678)
 * compareNurseNames(nurse1, nurse2) -> true
 *
 * val nurse1 = Pair("John Smith", 9876)
 * val nurse2 = Pair("Mary Johnson", 9876)
 * compareNurseNames(nurse1, nurse2) -> false
 */
fun compareNurseNames(nurse1: Pair<String, Int>, nurse2: Pair<String, Int>): Boolean {

    // Access the first element of each pair (name)
    val nurse1Name = nurse1.first
    val nurse2Name = nurse2.first

    // Compare the names using identity comparison operator
    return nurse1Name === nurse2Name
}
/**
 * You are given two pairs containing information about two nurses. Your task is to compare their names using identity comparison operators and return true if they have the same name, and false otherwise.
 *
 * The first element of each pair represents the nurse's full name, while the second element represents their ID number.
 *
 * Implement the compareNurseNames function that takes the two nurse pairs as arguments, and return true if the nurses have the same name, and false otherwise.
 *
 * Example:
 * val nurse1 = Pair("Jane Doe", 1234)
 * val nurse2 = Pair("Jane Doe", 5678)
 * compareNurseNames(nurse1, nurse2) -> true
 *
 * val nurse1 = Pair("John Smith", 9876)
 * val nurse2 = Pair("Mary Johnson", 9876)
 * compareNurseNames(nurse1, nurse2) -> false
 */
fun compareNurseNames(nurse1: Pair<String, Int>, nurse2: Pair<String, Int>): Boolean {
/**
 * You are given two pairs containing information about two nurses. Your task is to compare their names using identity comparison operators and return true if they have the same name, and false otherwise.
 *
 * The first element of each pair represents the nurse's full name, while the second element represents their ID number.
 *
 * Implement the compareNurseNames function that takes the two nurse pairs as arguments, and return true if the nurses have the same name, and false otherwise.
 *
 * Example:
 * val nurse1 = Pair("Jane Doe", 1234)
 * val nurse2 = Pair("Jane Doe", 5678)
 * compareNurseNames(nurse1, nurse2) -> true
 *
 * val nurse1 = Pair("John Smith", 9876)
 * val nurse2 = Pair("Mary Johnson", 9876)
 * compareNurseNames(nurse1, nurse2) -> false
 */
fun compareNurseNames(nurse1: Pair<String, Int>, nurse2: Pair<String, Int>): Boolean {

    // Access the first element of each pair (name)
    val nurse1Name = nurse1.first
    val nurse2Name = nurse2.first

    // Compare the names using identity comparison operator
    return nurse1Name === nurse2Name
}