/**
 * This exercise is designed for a Social Worker.
 * The goal is to create a function that takes a list of names as input and returns a tuple containing:
 * - The names that start with a vowel
 * - The names that have an even number of characters
 * - The names that contain the letter 'a'
 *
 * Your task is to complete the function code using list comprehension to create the tuple.
 *
 * @param names A list of names (strings).
 * @return A tuple containing the names that start with a vowel, have an even number of characters, and contain the letter 'a'.
 *
 * Example:
 * Input: ['Alice', 'Bob', 'Charlie', 'David', 'Eve']
 * Output: ('Alice', 'Eve')
 */
fun createTupleAndListComprehension(names: List<String>): Triple<List<String>, List<String>, List<String>> {

    val vowelNames = names.filter { it.first().toLowerCase() in "aeiou" }
    val evenNames = names.filter { it.length % 2 == 0 }
    val containsANames = names.filter { it.toLowerCase().contains('a') }

    return Triple(vowelNames, evenNames, containsANames)
}
/**
 * This exercise is designed for a Social Worker.
 * The goal is to create a function that takes a list of names as input and returns a tuple containing:
 * - The names that start with a vowel
 * - The names that have an even number of characters
 * - The names that contain the letter 'a'
 *
 * Your task is to complete the function code using list comprehension to create the tuple.
 *
 * @param names A list of names (strings).
 * @return A tuple containing the names that start with a vowel, have an even number of characters, and contain the letter 'a'.
 *
 * Example:
 * Input: ['Alice', 'Bob', 'Charlie', 'David', 'Eve']
 * Output: ('Alice', 'Eve')
 */
fun createTupleAndListComprehension(names: List<String>): Triple<List<String>, List<String>, List<String>> {
/**
 * This exercise is designed for a Social Worker.
 * The goal is to create a function that takes a list of names as input and returns a tuple containing:
 * - The names that start with a vowel
 * - The names that have an even number of characters
 * - The names that contain the letter 'a'
 *
 * Your task is to complete the function code using list comprehension to create the tuple.
 *
 * @param names A list of names (strings).
 * @return A tuple containing the names that start with a vowel, have an even number of characters, and contain the letter 'a'.
 *
 * Example:
 * Input: ['Alice', 'Bob', 'Charlie', 'David', 'Eve']
 * Output: ('Alice', 'Eve')
 */
fun createTupleAndListComprehension(names: List<String>): Triple<List<String>, List<String>, List<String>> {

    val vowelNames = names.filter { it.first().toLowerCase() in "aeiou" }
    val evenNames = names.filter { it.length % 2 == 0 }
    val containsANames = names.filter { it.toLowerCase().contains('a') }

    return Triple(vowelNames, evenNames, containsANames)
}