/**
 * This function takes a list and an element as input and appends the element to the list.
 * Additionally, it returns the index of the newly appended element in the list.
 *
 * @param data_list The list to which the element needs to be appended.
 * @param element The element to append to the list.
 * @return The index of the newly appended element in the list.
 */
fun appendToList(dataList: MutableList<Any>, element: Any): Int {

    dataList.add(element)
    val index = dataList.indexOf(element)
    return index
}
/**
 * This function takes a list and an element as input and appends the element to the list.
 * Additionally, it returns the index of the newly appended element in the list.
 *
 * @param data_list The list to which the element needs to be appended.
 * @param element The element to append to the list.
 * @return The index of the newly appended element in the list.
 */
fun appendToList(dataList: MutableList<Any>, element: Any): Int {
/**
 * This function takes a list and an element as input and appends the element to the list.
 * Additionally, it returns the index of the newly appended element in the list.
 *
 * @param data_list The list to which the element needs to be appended.
 * @param element The element to append to the list.
 * @return The index of the newly appended element in the list.
 */
fun appendToList(dataList: MutableList<Any>, element: Any): Int {

    dataList.add(element)
    val index = dataList.indexOf(element)
    return index
}