util_get_subset_missing (public)

 util_get_subset_missing list1 list2

Defined in packages/acs-tcl/tcl/utilities-procs.tcl

Returns the elements in list1 that are not in list2. Ignores duplicates.

Parameters:
list1 (required)
list2 (required)
Returns:
The list of elements from list1 that could not be found in list2.
Author:
Peter Marklund

Testcases:
message__get_embedded_vars, util_get_subset_missing
Source code:
    set missing [list]

    foreach e $list1 {
        if {$e ni $list2 && $e ni $missing} {
            lappend missing $e
        }
    }

    return $missing
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-tcl/tcl/utilities-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: