/**
 * Given a list of items, return a new list containing all the items that do not match
 * a given pattern.
 *
 * @param items a list of items to be checked
 * @param pattern a pattern to compare the items against
 * @return a list containing the items that do not match the given pattern
 */
fun findNotMatching(items: List<Any>, pattern: Any): List<Any> {

    val nonMatchingItems = mutableListOf<Any>()

    for (item in items) {
        if (item != pattern) {
            nonMatchingItems.add(item)
        }
    }

    return nonMatchingItems
}
/**
 * Given a list of items, return a new list containing all the items that do not match
 * a given pattern.
 *
 * @param items a list of items to be checked
 * @param pattern a pattern to compare the items against
 * @return a list containing the items that do not match the given pattern
 */
fun findNotMatching(items: List<Any>, pattern: Any): List<Any> {
/**
 * Given a list of items, return a new list containing all the items that do not match
 * a given pattern.
 *
 * @param items a list of items to be checked
 * @param pattern a pattern to compare the items against
 * @return a list containing the items that do not match the given pattern
 */
fun findNotMatching(items: List<Any>, pattern: Any): List<Any> {

    val nonMatchingItems = mutableListOf<Any>()

    for (item in items) {
        if (item != pattern) {
            nonMatchingItems.add(item)
        }
    }

    return nonMatchingItems
}