/**
 * This function finds the intersection of the targetList with a minimum value using the 'Greater Than or Equal' condition
 * and the enumerate function.
 *
 * @param targetList A list of integers to find the intersection from.
 * @param minValue The minimum value for the intersection.
 * @return A list containing the intersection of the targetList with values greater than or equal to minValue.
 *
 * Example:
 * intersectionGreaterThanEqualEnumerate(listOf(1, 2, 3, 4, 5), 3) // [3, 4, 5]
 */
fun intersectionGreaterThanEqualEnumerate(targetList: List<Int>, minValue: Int): List<Int> {

    // Initialize an empty list to store the intersection
    val intersection = mutableListOf<Int>()

    // Iterate over the targetList with index using forEachIndexed
    targetList.forEachIndexed { index, value ->
        // Check if the value is greater than or equal to minValue
        if (value >= minValue) {
            // Add the value to the intersection list
            intersection.add(value)
        }
    }

    return intersection
}
/**
 * This function finds the intersection of the targetList with a minimum value using the 'Greater Than or Equal' condition
 * and the enumerate function.
 *
 * @param targetList A list of integers to find the intersection from.
 * @param minValue The minimum value for the intersection.
 * @return A list containing the intersection of the targetList with values greater than or equal to minValue.
 *
 * Example:
 * intersectionGreaterThanEqualEnumerate(listOf(1, 2, 3, 4, 5), 3) // [3, 4, 5]
 */
fun intersectionGreaterThanEqualEnumerate(targetList: List<Int>, minValue: Int): List<Int> {
/**
 * This function finds the intersection of the targetList with a minimum value using the 'Greater Than or Equal' condition
 * and the enumerate function.
 *
 * @param targetList A list of integers to find the intersection from.
 * @param minValue The minimum value for the intersection.
 * @return A list containing the intersection of the targetList with values greater than or equal to minValue.
 *
 * Example:
 * intersectionGreaterThanEqualEnumerate(listOf(1, 2, 3, 4, 5), 3) // [3, 4, 5]
 */
fun intersectionGreaterThanEqualEnumerate(targetList: List<Int>, minValue: Int): List<Int> {

    // Initialize an empty list to store the intersection
    val intersection = mutableListOf<Int>()

    // Iterate over the targetList with index using forEachIndexed
    targetList.forEachIndexed { index, value ->
        // Check if the value is greater than or equal to minValue
        if (value >= minValue) {
            // Add the value to the intersection list
            intersection.add(value)
        }
    }

    return intersection
}