Home Online Manual
Top
Back: isSubset
Forward: addElement
FastBack:
FastForward:
Up: sets_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.14.8.7 isSuperset

Procedure from library sets.lib (see sets_lib).

Return:
bool, 1 if N is a Superset of M or 0 if not

Example:
 
LIB "sets.lib";
list l =1,2;
list j =1,2,3,4;
Set N=l;
Set M=j;
N;
==> {2; 1}
==> Set with 2 elements
==> 
M;
==> {4; 3; 2; 1}
==> Set with 4 elements
==> 
N>M;
==> 0
M>N;
==> 1