/**
 * This function takes two parameters, a list of names of dancers and an initial movement.
 * It creates a new list of dancers with the given names, and assigns the initial movement to each dancer.
 * The function returns the list of dancers.
 *
 * @param names A list of strings representing the names of dancers.
 * @param initialMovement The movement to be assigned to each dancer.
 * @return A list of dancers with names and assigned initial movement.
 */
fun createDancerList(names: List<String>, initialMovement: String): List<Map<String, String>> {

    val dancers = mutableListOf<Map<String, String>>()
    for (name in names) {
        val dancer = mapOf("name" to name, "movement" to initialMovement)
        dancers.add(dancer)
    }
    return dancers
}
/**
 * This function takes two parameters, a list of names of dancers and an initial movement.
 * It creates a new list of dancers with the given names, and assigns the initial movement to each dancer.
 * The function returns the list of dancers.
 *
 * @param names A list of strings representing the names of dancers.
 * @param initialMovement The movement to be assigned to each dancer.
 * @return A list of dancers with names and assigned initial movement.
 */
fun createDancerList(names: List<String>, initialMovement: String): List<Map<String, String>> {
/**
 * This function takes two parameters, a list of names of dancers and an initial movement.
 * It creates a new list of dancers with the given names, and assigns the initial movement to each dancer.
 * The function returns the list of dancers.
 *
 * @param names A list of strings representing the names of dancers.
 * @param initialMovement The movement to be assigned to each dancer.
 * @return A list of dancers with names and assigned initial movement.
 */
fun createDancerList(names: List<String>, initialMovement: String): List<Map<String, String>> {

    val dancers = mutableListOf<Map<String, String>>()
    for (name in names) {
        val dancer = mapOf("name" to name, "movement" to initialMovement)
        dancers.add(dancer)
    }
    return dancers
}