/**
 * You are an anthropologist working on a project to study ancient civilizations. You have a list of archeological sites that you have visited
 * and another list of the excavation results for each site. Your task is to modify the excavation results based on certain conditions using 
 * Boolean operations and assign them back to the original list. 
 * 
 * - If the excavation result is 'unknown' or 'inconclusive', replace it with the boolean value 'false'.
 * - If the excavation result is 'found', replace it with the boolean value 'true'.
 * - If the excavation result is 'partially found', leave it unchanged. 
 * 
 * Return the modified list of excavation results.
 */
fun modifyBoolList(archeologicalSites: List<String>, excavationResults: MutableList<String>): List<Boolean> {

    for (i in excavationResults.indices) {
        when (excavationResults[i]) {
            "unknown", "inconclusive" -> excavationResults[i] = "false"
            "found" -> excavationResults[i] = "true"
        }
    }
    return excavationResults.map { it == "true" }
}

// Example usage
val sites = listOf("Pyramids of Giza", "Machu Picchu", "Stonehenge")
val results = mutableListOf("unknown", "found")
/**
 * You are an anthropologist working on a project to study ancient civilizations. You have a list of archeological sites that you have visited
 * and another list of the excavation results for each site. Your task is to modify the excavation results based on certain conditions using 
 * Boolean operations and assign them back to the original list. 
 * 
 * - If the excavation result is 'unknown' or 'inconclusive', replace it with the boolean value 'false'.
 * - If the excavation result is 'found', replace it with the boolean value 'true'.
 * - If the excavation result is 'partially found', leave it unchanged. 
 * 
 * Return the modified list of excavation results.
 */
fun modifyBoolList(archeologicalSites: List<String>, excavationResults: MutableList<String>): List<Boolean> {
/**
 * You are an anthropologist working on a project to study ancient civilizations. You have a list of archeological sites that you have visited
 * and another list of the excavation results for each site. Your task is to modify the excavation results based on certain conditions using 
 * Boolean operations and assign them back to the original list. 
 * 
 * - If the excavation result is 'unknown' or 'inconclusive', replace it with the boolean value 'false'.
 * - If the excavation result is 'found', replace it with the boolean value 'true'.
 * - If the excavation result is 'partially found', leave it unchanged. 
 * 
 * Return the modified list of excavation results.
 */
fun modifyBoolList(archeologicalSites: List<String>, excavationResults: MutableList<String>): List<Boolean> {

    for (i in excavationResults.indices) {
        when (excavationResults[i]) {
            "unknown", "inconclusive" -> excavationResults[i] = "false"
            "found" -> excavationResults[i] = "true"
        }
    }
    return excavationResults.map { it == "true" }
}

// Example usage
val sites = listOf("Pyramids of Giza", "Machu Picchu", "Stonehenge")
val results = mutableListOf("unknown", "found")