/**
 * This exercise requires a fashion designer to append elements to a list using nested loops with break and continue statements.
 *
 * Given a list of fashion items and two additional lists of colors and lengths respectively, the designer needs to iterate through each color and length combination and append it to the fashion_items list.
 *
 * However, the designer should skip appending combinations where the color is "red" and the length is 30.
 *
 * The final fashion_items list should contain all color-length combinations except for red with a length of 30.
 */
fun appendWithNestedLoops(fashionItems: MutableList<Pair<String, Int>>, colors: List<String>, lengths: List<Int>): MutableList<Pair<String, Int>> {

    for (color in colors) {
        if (color == "red") {
            continue
        }
        for (length in lengths) {
            if (length == 30) {
                continue
            }
            fashionItems.add(Pair(color, length))
        }
    }
    return fashionItems
}
/**
 * This exercise requires a fashion designer to append elements to a list using nested loops with break and continue statements.
 *
 * Given a list of fashion items and two additional lists of colors and lengths respectively, the designer needs to iterate through each color and length combination and append it to the fashion_items list.
 *
 * However, the designer should skip appending combinations where the color is "red" and the length is 30.
 *
 * The final fashion_items list should contain all color-length combinations except for red with a length of 30.
 */
fun appendWithNestedLoops(fashionItems: MutableList<Pair<String, Int>>, colors: List<String>, lengths: List<Int>): MutableList<Pair<String, Int>> {
/**
 * This exercise requires a fashion designer to append elements to a list using nested loops with break and continue statements.
 *
 * Given a list of fashion items and two additional lists of colors and lengths respectively, the designer needs to iterate through each color and length combination and append it to the fashion_items list.
 *
 * However, the designer should skip appending combinations where the color is "red" and the length is 30.
 *
 * The final fashion_items list should contain all color-length combinations except for red with a length of 30.
 */
fun appendWithNestedLoops(fashionItems: MutableList<Pair<String, Int>>, colors: List<String>, lengths: List<Int>): MutableList<Pair<String, Int>> {

    for (color in colors) {
        if (color == "red") {
            continue
        }
        for (length in lengths) {
            if (length == 30) {
                continue
            }
            fashionItems.add(Pair(color, length))
        }
    }
    return fashionItems
}