/**
 * This function generates possible outfit templates for a fashion designer based on given colors, 
 * patterns, and styles.
 * 
 * @param colors a list of colors to choose from
 * @param patterns a list of patterns to choose from
 * @param styles a list of styles to choose from
 * @return a list of outfit templates using list comprehension and nested loops
 */
fun generateOutfitTemplates(colors: List<String>, patterns: List<String>, styles: List<String>): List<Triple<String, String, String>> {

    val outfitTemplates = colors.flatMap { color ->
        patterns.flatMap { pattern ->
            styles.map { style ->
                Triple(color, pattern, style)
            }
        }
    }
    return outfitTemplates
}
/**
 * This function generates possible outfit templates for a fashion designer based on given colors, 
 * patterns, and styles.
 * 
 * @param colors a list of colors to choose from
 * @param patterns a list of patterns to choose from
 * @param styles a list of styles to choose from
 * @return a list of outfit templates using list comprehension and nested loops
 */
fun generateOutfitTemplates(colors: List<String>, patterns: List<String>, styles: List<String>): List<Triple<String, String, String>> {
/**
 * This function generates possible outfit templates for a fashion designer based on given colors, 
 * patterns, and styles.
 * 
 * @param colors a list of colors to choose from
 * @param patterns a list of patterns to choose from
 * @param styles a list of styles to choose from
 * @return a list of outfit templates using list comprehension and nested loops
 */
fun generateOutfitTemplates(colors: List<String>, patterns: List<String>, styles: List<String>): List<Triple<String, String, String>> {

    val outfitTemplates = colors.flatMap { color ->
        patterns.flatMap { pattern ->
            styles.map { style ->
                Triple(color, pattern, style)
            }
        }
    }
    return outfitTemplates
}