/**
 * This function takes the nested tuple of veterinarian client data as input and returns a list of all the clients.
 *
 * @param veterinarianData A nested tuple containing the veterinarian client data.
 * @return A list of all the clients in the veterinarianData.
 */
fun listVeterinarianClients(veterinarianData: Triple<String, String, List<Triple<String, String, Int>>>): List<String> {

    // Get the nested tuple containing the client data
    val clientsData = veterinarianData.third

    // Initialize an empty list to store the client names
    val clientNames = mutableListOf<String>()

    // Loop through each client data and extract the name
    for (client in clientsData) {
        clientNames.add(client.first)
    }

    return clientNames
}

val veterinarianData = Triple(
    "Dr. John Doe", "123 Main St", listOf(
        Triple("Alice", "Dog", 3),
        Triple("Bob", "Cat", 5),
        Triple("Charlie", "Bird", 2),
        Triple("David", "Snake", 1)
    )
)

// Call the function to get the list of all the clients
val clients = listVeterinarianClients(veterinarianData)
/**
 * This function takes the nested tuple of veterinarian client data as input and returns a list of all the clients.
 *
 * @param veterinarianData A nested tuple containing the veterinarian client data.
 * @return A list of all the clients in the veterinarianData.
 */
fun listVeterinarianClients(veterinarianData: Triple<String, String, List<Triple<String, String, Int>>>): List<String> {
/**
 * This function takes the nested tuple of veterinarian client data as input and returns a list of all the clients.
 *
 * @param veterinarianData A nested tuple containing the veterinarian client data.
 * @return A list of all the clients in the veterinarianData.
 */
fun listVeterinarianClients(veterinarianData: Triple<String, String, List<Triple<String, String, Int>>>): List<String> {

    // Get the nested tuple containing the client data
    val clientsData = veterinarianData.third

    // Initialize an empty list to store the client names
    val clientNames = mutableListOf<String>()

    // Loop through each client data and extract the name
    for (client in clientsData) {
        clientNames.add(client.first)
    }

    return clientNames
}

val veterinarianData = Triple(
    "Dr. John Doe", "123 Main St", listOf(
        Triple("Alice", "Dog", 3),
        Triple("Bob", "Cat", 5),
        Triple("Charlie", "Bird", 2),
        Triple("David", "Snake", 1)
    )
)

// Call the function to get the list of all the clients
val clients = listVeterinarianClients(veterinarianData)