up previous next

IsSubset

Syntax

IsSubset(L:LIST,M:LIST):BOOL
    

Summary

checks if the elements of one list are a subset of another

Description

This function returns TRUE is Set(L) is contained in Set(M); otherwise it returns FALSE.

NOTE: The obsolete function SubSet used to have the same behaviour.

example

    
IsSubset([1,1,2],[1,2,3,"a"]);
TRUE
-------------------------------
IsSubset([1,2],["a","b"]);
FALSE
-------------------------------
IsSubset([],[1,2]);
TRUE
-------------------------------
        
    

See Also