/**
 * This function takes in a list of environmental data and a threshold value.
 * It creates a tuple of values from the data that exceed the threshold, excluding
 * any values containing the letter 'a'. The function uses the continue statement
 * to skip over values that contain 'a' and continue with the next iteration.
 *
 * @param envData A list of numeric values representing environmental data
 * @param continueThreshold A numeric value representing the threshold
 * @return A tuple containing values from envData that exceed the threshold and exclude 'a'
 */
fun createEnvScientistData(envData: List<Double>, continueThreshold: Double): List<Double> {

    val resultTuple = mutableListOf<Double>()
    for (data in envData) {
        if ('a' in data.toString()) {
            continue
        }
        if (data > continueThreshold) {
            resultTuple.add(data)
        }
    }
    return resultTuple
}

// Create a sample list of environmental data
val dataList = listOf(17.0, 32.0, 49.5, 22.8, 61.0, 18.9, 25.6, 36.1, 23.4)

// Call the function with the provided data list and threshold of 20
val tupleResult = createEnvScientistData(dataList, 20.0)
/**
 * This function takes in a list of environmental data and a threshold value.
 * It creates a tuple of values from the data that exceed the threshold, excluding
 * any values containing the letter 'a'. The function uses the continue statement
 * to skip over values that contain 'a' and continue with the next iteration.
 *
 * @param envData A list of numeric values representing environmental data
 * @param continueThreshold A numeric value representing the threshold
 * @return A tuple containing values from envData that exceed the threshold and exclude 'a'
 */
fun createEnvScientistData(envData: List<Double>, continueThreshold: Double): List<Double> {
/**
 * This function takes in a list of environmental data and a threshold value.
 * It creates a tuple of values from the data that exceed the threshold, excluding
 * any values containing the letter 'a'. The function uses the continue statement
 * to skip over values that contain 'a' and continue with the next iteration.
 *
 * @param envData A list of numeric values representing environmental data
 * @param continueThreshold A numeric value representing the threshold
 * @return A tuple containing values from envData that exceed the threshold and exclude 'a'
 */
fun createEnvScientistData(envData: List<Double>, continueThreshold: Double): List<Double> {

    val resultTuple = mutableListOf<Double>()
    for (data in envData) {
        if ('a' in data.toString()) {
            continue
        }
        if (data > continueThreshold) {
            resultTuple.add(data)
        }
    }
    return resultTuple
}

// Create a sample list of environmental data
val dataList = listOf(17.0, 32.0, 49.5, 22.8, 61.0, 18.9, 25.6, 36.1, 23.4)

// Call the function with the provided data list and threshold of 20
val tupleResult = createEnvScientistData(dataList, 20.0)