/**
 * This function removes all the elements from a given list that are greater than or equal to a given value.
 *
 * @param nums A list of numbers.
 * @param threshold The value to compare the elements of the list with.
 * @return A new list with all the elements that are smaller than the threshold value.
 */
fun removeGreaterOrEqual(nums: List<Double>, threshold: Double): List<Double> {

    // Use filter to create a new list with elements smaller than the threshold
    return nums.filter { it < threshold }
}
/**
 * This function removes all the elements from a given list that are greater than or equal to a given value.
 *
 * @param nums A list of numbers.
 * @param threshold The value to compare the elements of the list with.
 * @return A new list with all the elements that are smaller than the threshold value.
 */
fun removeGreaterOrEqual(nums: List<Double>, threshold: Double): List<Double> {
/**
 * This function removes all the elements from a given list that are greater than or equal to a given value.
 *
 * @param nums A list of numbers.
 * @param threshold The value to compare the elements of the list with.
 * @return A new list with all the elements that are smaller than the threshold value.
 */
fun removeGreaterOrEqual(nums: List<Double>, threshold: Double): List<Double> {

    // Use filter to create a new list with elements smaller than the threshold
    return nums.filter { it < threshold }
}