/**
 * Given a list of numbers, this function returns a new list with only the numbers greater than or equal
 * to the specified threshold.
 *
 * @param numbersList List of numbers.
 * @param threshold Threshold to filter the numbers.
 * @return New list containing only the numbers greater than or equal to the threshold.
 */
fun intersectGreaterThanEqual(numbersList: List<Double>, threshold: Double): List<Double> {

    val filteredList = mutableListOf<Double>()

    for (num in numbersList) {
        // Write code to check if num is greater than or equal to threshold and add it to the filteredList
        if (num >= threshold) {
            filteredList.add(num)
        }
    }

    return filteredList
}
/**
 * Given a list of numbers, this function returns a new list with only the numbers greater than or equal
 * to the specified threshold.
 *
 * @param numbersList List of numbers.
 * @param threshold Threshold to filter the numbers.
 * @return New list containing only the numbers greater than or equal to the threshold.
 */
fun intersectGreaterThanEqual(numbersList: List<Double>, threshold: Double): List<Double> {
/**
 * Given a list of numbers, this function returns a new list with only the numbers greater than or equal
 * to the specified threshold.
 *
 * @param numbersList List of numbers.
 * @param threshold Threshold to filter the numbers.
 * @return New list containing only the numbers greater than or equal to the threshold.
 */
fun intersectGreaterThanEqual(numbersList: List<Double>, threshold: Double): List<Double> {

    val filteredList = mutableListOf<Double>()

    for (num in numbersList) {
        // Write code to check if num is greater than or equal to threshold and add it to the filteredList
        if (num >= threshold) {
            filteredList.add(num)
        }
    }

    return filteredList
}