Navigation
Synopsis Test whether a set is empty.
Function bool isEmpty(set[&T] st)
Usage import Set;
Description Yields true if s is empty, and false otherwise.
Examples
rascal>import Set;
ok
rascal>isEmpty({1, 2, 3});
bool: false
rascal>isEmpty({});
bool: true

Questions
Question [1].
The type of isEmpty({-11, -7}) is

Question [2].
isEmpty({-17, 15, -1, 19, 16, 5}) == 



Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.