/**
 * Given a list and an element, find the index position of the element within the list.
 *
 * @param listData A list of elements
 * @param element The element to search for in the list
 * @return The index position of the element within the list, -1 if the element is not found
 */
fun getIndexOfElement(listData: List<Any>, element: Any): Int {

    listData.forEachIndexed { index, item ->
        if (item == element) {
            return index
        }
    }
    return -1
}
/**
 * Given a list and an element, find the index position of the element within the list.
 *
 * @param listData A list of elements
 * @param element The element to search for in the list
 * @return The index position of the element within the list, -1 if the element is not found
 */
fun getIndexOfElement(listData: List<Any>, element: Any): Int {
/**
 * Given a list and an element, find the index position of the element within the list.
 *
 * @param listData A list of elements
 * @param element The element to search for in the list
 * @return The index position of the element within the list, -1 if the element is not found
 */
fun getIndexOfElement(listData: List<Any>, element: Any): Int {

    listData.forEachIndexed { index, item ->
        if (item == element) {
            return index
        }
    }
    return -1
}