/**
 * Given a list of star brightness values, this function filters out the stars
 * whose brightness is greater than or equal to the given threshold using list comprehension.
 *
 * @param starList A list of float values representing the brightness of each star
 * @param threshold A float value representing the minimum brightness threshold
 * @return A list of star brightness values which are greater than or equal to the threshold
 */
fun calculateStarBrightness(starList: List<Float>, threshold: Float): List<Float> {

    // Use list comprehension to filter out stars with brightness greater than or equal to the threshold
    val filteredStars = starList.filter { it >= threshold }

    return filteredStars
}

// Example usage
/**
 * Given a list of star brightness values, this function filters out the stars
 * whose brightness is greater than or equal to the given threshold using list comprehension.
 *
 * @param starList A list of float values representing the brightness of each star
 * @param threshold A float value representing the minimum brightness threshold
 * @return A list of star brightness values which are greater than or equal to the threshold
 */
fun calculateStarBrightness(starList: List<Float>, threshold: Float): List<Float> {
/**
 * Given a list of star brightness values, this function filters out the stars
 * whose brightness is greater than or equal to the given threshold using list comprehension.
 *
 * @param starList A list of float values representing the brightness of each star
 * @param threshold A float value representing the minimum brightness threshold
 * @return A list of star brightness values which are greater than or equal to the threshold
 */
fun calculateStarBrightness(starList: List<Float>, threshold: Float): List<Float> {

    // Use list comprehension to filter out stars with brightness greater than or equal to the threshold
    val filteredStars = starList.filter { it >= threshold }

    return filteredStars
}

// Example usage