/**
 * Given a list of numerical data related to astronomy and a threshold value, filter the data based on whether each
 * element is greater than or equal to the threshold.
 *
 * @param astronomyData A list of numerical data related to astronomy.
 * @param threshold The threshold value to compare the elements with.
 * @return A filtered list containing elements greater than or equal to the threshold.
 *
 * Example:
 * filterAstronomer(listOf(3.5, 4.2, 10.8, 5.1, 2.0, -0.7), 5) returns [10.8, 5.1]
 */
fun filterAstronomer(astronomyData: List<Double>, threshold: Double): List<Double> {

    return astronomyData.filter { it >= threshold }
}
/**
 * Given a list of numerical data related to astronomy and a threshold value, filter the data based on whether each
 * element is greater than or equal to the threshold.
 *
 * @param astronomyData A list of numerical data related to astronomy.
 * @param threshold The threshold value to compare the elements with.
 * @return A filtered list containing elements greater than or equal to the threshold.
 *
 * Example:
 * filterAstronomer(listOf(3.5, 4.2, 10.8, 5.1, 2.0, -0.7), 5) returns [10.8, 5.1]
 */
fun filterAstronomer(astronomyData: List<Double>, threshold: Double): List<Double> {
/**
 * Given a list of numerical data related to astronomy and a threshold value, filter the data based on whether each
 * element is greater than or equal to the threshold.
 *
 * @param astronomyData A list of numerical data related to astronomy.
 * @param threshold The threshold value to compare the elements with.
 * @return A filtered list containing elements greater than or equal to the threshold.
 *
 * Example:
 * filterAstronomer(listOf(3.5, 4.2, 10.8, 5.1, 2.0, -0.7), 5) returns [10.8, 5.1]
 */
fun filterAstronomer(astronomyData: List<Double>, threshold: Double): List<Double> {

    return astronomyData.filter { it >= threshold }
}