/**
 * This function takes a list of furniture items and returns a new list containing only the items that are in stock.
 *
 * @param furnitureList A list of furniture items.
 * @return A new list containing only the furniture items that are in stock.
 */
fun selectFurniture(furnitureList: List<Map<String, Any?>>): List<Map<String, Any?>> {

    return furnitureList.filter { it["stock"] != null && it["stock"] as Int > 0 }
}
/**
 * This function takes a list of furniture items and returns a new list containing only the items that are in stock.
 *
 * @param furnitureList A list of furniture items.
 * @return A new list containing only the furniture items that are in stock.
 */
fun selectFurniture(furnitureList: List<Map<String, Any?>>): List<Map<String, Any?>> {
/**
 * This function takes a list of furniture items and returns a new list containing only the items that are in stock.
 *
 * @param furnitureList A list of furniture items.
 * @return A new list containing only the furniture items that are in stock.
 */
fun selectFurniture(furnitureList: List<Map<String, Any?>>): List<Map<String, Any?>> {

    return furnitureList.filter { it["stock"] != null && it["stock"] as Int > 0 }
}