up previous next
IsSubset

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

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


Description
This function returns True is MakeSet(L) is contained in MakeSet(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