/**
 * This function takes an item and two lists as arguments, and returns the list that contains the item.
 * If the item is not present in either list, it returns an empty list.
 *
 * @param item The item to search for in the lists.
 * @param list1 The first list to search in.
 * @param list2 The second list to search in.
 * @return The list that contains the item, or an empty list if the item is not present in either list.
 */
fun alternativeToTernaryOperator(item: Any, list1: List<Any>, list2: List<Any>): List<Any> {

    // Use the 'in' operator to check if the item is present in list1
    if (item in list1) {
        return list1
    } else if (item in list2) { // Use the 'in' operator to check if the item is present in list2
        return list2
    } else {
        return emptyList() // Return an empty list if the item is not present in either list
    }
}
/**
 * This function takes an item and two lists as arguments, and returns the list that contains the item.
 * If the item is not present in either list, it returns an empty list.
 *
 * @param item The item to search for in the lists.
 * @param list1 The first list to search in.
 * @param list2 The second list to search in.
 * @return The list that contains the item, or an empty list if the item is not present in either list.
 */
fun alternativeToTernaryOperator(item: Any, list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes an item and two lists as arguments, and returns the list that contains the item.
 * If the item is not present in either list, it returns an empty list.
 *
 * @param item The item to search for in the lists.
 * @param list1 The first list to search in.
 * @param list2 The second list to search in.
 * @return The list that contains the item, or an empty list if the item is not present in either list.
 */
fun alternativeToTernaryOperator(item: Any, list1: List<Any>, list2: List<Any>): List<Any> {

    // Use the 'in' operator to check if the item is present in list1
    if (item in list1) {
        return list1
    } else if (item in list2) { // Use the 'in' operator to check if the item is present in list2
        return list2
    } else {
        return emptyList() // Return an empty list if the item is not present in either list
    }
}