/**
 * This exercise requires creating a dictionary for a list of athletes.
 * The dictionary should contain the athlete's name as the key, and their height and weight as a tuple value.
 * Using break and continue statements is needed to handle specific cases.
 *
 * @param athletes A list of athletes with their names, heights, and weights.
 * @return A dictionary with the athlete's name as the key and their height and weight as a tuple value.
 */
fun createAthleteDictionary(athletes: List<Triple<String, Int, Int>>): Map<String, Pair<Int, Int>> {

    val athleteDict = mutableMapOf<String, Pair<Int, Int>>()

    for (athlete in athletes) {
        val (name, height, weight) = athlete

        if (name !is String) {
            continue
        } else if (height !is Int || weight !is Int) {
            break
        }

        if (name in athleteDict) {
            continue
        } else {
            athleteDict[name] = Pair(height, weight)
        }
    }

    return athleteDict
}
/**
 * This exercise requires creating a dictionary for a list of athletes.
 * The dictionary should contain the athlete's name as the key, and their height and weight as a tuple value.
 * Using break and continue statements is needed to handle specific cases.
 *
 * @param athletes A list of athletes with their names, heights, and weights.
 * @return A dictionary with the athlete's name as the key and their height and weight as a tuple value.
 */
fun createAthleteDictionary(athletes: List<Triple<String, Int, Int>>): Map<String, Pair<Int, Int>> {
/**
 * This exercise requires creating a dictionary for a list of athletes.
 * The dictionary should contain the athlete's name as the key, and their height and weight as a tuple value.
 * Using break and continue statements is needed to handle specific cases.
 *
 * @param athletes A list of athletes with their names, heights, and weights.
 * @return A dictionary with the athlete's name as the key and their height and weight as a tuple value.
 */
fun createAthleteDictionary(athletes: List<Triple<String, Int, Int>>): Map<String, Pair<Int, Int>> {

    val athleteDict = mutableMapOf<String, Pair<Int, Int>>()

    for (athlete in athletes) {
        val (name, height, weight) = athlete

        if (name !is String) {
            continue
        } else if (height !is Int || weight !is Int) {
            break
        }

        if (name in athleteDict) {
            continue
        } else {
            athleteDict[name] = Pair(height, weight)
        }
    }

    return athleteDict
}