/**
 * This function takes a tuple containing information about a dancer and an index list as input, and returns the
 * corresponding information based on the given indexes.
 *
 * @param dancerInfo A tuple containing information about a dancer.
 * @param indexes A list of indexes indicating which parts of the dancerInfo are required.
 * @return A list of information corresponding to the given indexes.
 */
fun getDancerInfo(dancerInfo: List<Any>, indexes: List<Int>): List<Any> {

    // Container for storing the required information
    val requiredInfo = mutableListOf<Any>()

    // Loop through the indexes
    for (index in indexes) {
        // Check if index is within the range of the dancerInfo list
        if (index >= 0 && index < dancerInfo.size) {
            // Add the information at the given index to the requiredInfo list
            requiredInfo.add(dancerInfo[index])
        }
    }

    return requiredInfo
}
/**
 * This function takes a tuple containing information about a dancer and an index list as input, and returns the
 * corresponding information based on the given indexes.
 *
 * @param dancerInfo A tuple containing information about a dancer.
 * @param indexes A list of indexes indicating which parts of the dancerInfo are required.
 * @return A list of information corresponding to the given indexes.
 */
fun getDancerInfo(dancerInfo: List<Any>, indexes: List<Int>): List<Any> {
/**
 * This function takes a tuple containing information about a dancer and an index list as input, and returns the
 * corresponding information based on the given indexes.
 *
 * @param dancerInfo A tuple containing information about a dancer.
 * @param indexes A list of indexes indicating which parts of the dancerInfo are required.
 * @return A list of information corresponding to the given indexes.
 */
fun getDancerInfo(dancerInfo: List<Any>, indexes: List<Int>): List<Any> {

    // Container for storing the required information
    val requiredInfo = mutableListOf<Any>()

    // Loop through the indexes
    for (index in indexes) {
        // Check if index is within the range of the dancerInfo list
        if (index >= 0 && index < dancerInfo.size) {
            // Add the information at the given index to the requiredInfo list
            requiredInfo.add(dancerInfo[index])
        }
    }

    return requiredInfo
}