/**
 * Modifies the list of dancers based on the specified criteria.
 *
 * @param dancers A list of dictionaries representing dancers.
 * @param name The name of the dancer to be modified.
 * @param newName The new name to be assigned to the dancer.
 * @param position The position of the dancer to be modified.
 * @param newPosition The new position to be assigned to the dancer.
 * @return The modified list of dancers.
 */
fun modifyDancerList(dancers: List<MutableMap<String, String>>, name: String, newName: String, position: String, newPosition: String): List<MutableMap<String, String>> {

    for (dancer in dancers) {
        if (dancer["name"] == name && dancer["position"] == position) {
            dancer["name"] = newName
            dancer["position"] = newPosition
        }
    }
    return dancers
}
/**
 * Modifies the list of dancers based on the specified criteria.
 *
 * @param dancers A list of dictionaries representing dancers.
 * @param name The name of the dancer to be modified.
 * @param newName The new name to be assigned to the dancer.
 * @param position The position of the dancer to be modified.
 * @param newPosition The new position to be assigned to the dancer.
 * @return The modified list of dancers.
 */
fun modifyDancerList(dancers: List<MutableMap<String, String>>, name: String, newName: String, position: String, newPosition: String): List<MutableMap<String, String>> {
/**
 * Modifies the list of dancers based on the specified criteria.
 *
 * @param dancers A list of dictionaries representing dancers.
 * @param name The name of the dancer to be modified.
 * @param newName The new name to be assigned to the dancer.
 * @param position The position of the dancer to be modified.
 * @param newPosition The new position to be assigned to the dancer.
 * @return The modified list of dancers.
 */
fun modifyDancerList(dancers: List<MutableMap<String, String>>, name: String, newName: String, position: String, newPosition: String): List<MutableMap<String, String>> {

    for (dancer in dancers) {
        if (dancer["name"] == name && dancer["position"] == position) {
            dancer["name"] = newName
            dancer["position"] = newPosition
        }
    }
    return dancers
}