/**
 * Given an artist and a search value, find the index of the first element in the artist list that matches the search value.
 *
 * @param artist List of strings representing artists.
 * @param searchValue Value to search for in the artist list.
 * @return The index of the first match found, -1 if the search value is not found.
 */
fun indexEqual(artist: List<String>, searchValue: String): Int {

    // Iterate over each element in the artist list
    for ((index, element) in artist.withIndex()) {
        // Check if the element is equal to the search value
        if (element == searchValue) {
            return index
        }
    }
    
    // No matching element found
    return -1
}
/**
 * Given an artist and a search value, find the index of the first element in the artist list that matches the search value.
 *
 * @param artist List of strings representing artists.
 * @param searchValue Value to search for in the artist list.
 * @return The index of the first match found, -1 if the search value is not found.
 */
fun indexEqual(artist: List<String>, searchValue: String): Int {
/**
 * Given an artist and a search value, find the index of the first element in the artist list that matches the search value.
 *
 * @param artist List of strings representing artists.
 * @param searchValue Value to search for in the artist list.
 * @return The index of the first match found, -1 if the search value is not found.
 */
fun indexEqual(artist: List<String>, searchValue: String): Int {

    // Iterate over each element in the artist list
    for ((index, element) in artist.withIndex()) {
        // Check if the element is equal to the search value
        if (element == searchValue) {
            return index
        }
    }
    
    // No matching element found
    return -1
}