/**
 * This function takes in three lists: firefighters, ages, and ranks. It creates a tuple for each firefighter
 * using list comprehension and returns a list of these tuples.
 *
 * @param firefighters A list containing the names of firefighters
 * @param ages A list containing the ages of firefighters
 * @param ranks A list containing the ranks of firefighters
 * @return A list of tuples, where each tuple contains the name, age, and rank of a firefighter
 */
fun createFirefighterTuples(firefighters: List<String>, ages: List<Int>, ranks: List<String>): List<Triple<String, Int, String>> {

    return firefighters.zip(ages).zip(ranks).map { (pair, rank) -> Triple(pair.first, pair.second, rank) }
}
/**
 * This function takes in three lists: firefighters, ages, and ranks. It creates a tuple for each firefighter
 * using list comprehension and returns a list of these tuples.
 *
 * @param firefighters A list containing the names of firefighters
 * @param ages A list containing the ages of firefighters
 * @param ranks A list containing the ranks of firefighters
 * @return A list of tuples, where each tuple contains the name, age, and rank of a firefighter
 */
fun createFirefighterTuples(firefighters: List<String>, ages: List<Int>, ranks: List<String>): List<Triple<String, Int, String>> {
/**
 * This function takes in three lists: firefighters, ages, and ranks. It creates a tuple for each firefighter
 * using list comprehension and returns a list of these tuples.
 *
 * @param firefighters A list containing the names of firefighters
 * @param ages A list containing the ages of firefighters
 * @param ranks A list containing the ranks of firefighters
 * @return A list of tuples, where each tuple contains the name, age, and rank of a firefighter
 */
fun createFirefighterTuples(firefighters: List<String>, ages: List<Int>, ranks: List<String>): List<Triple<String, Int, String>> {

    return firefighters.zip(ages).zip(ranks).map { (pair, rank) -> Triple(pair.first, pair.second, rank) }
}