Navigation
Synopsis Test whether a map is empty.
Function bool isEmpty(map[&K, &V] M)
Usage import Map;
Description Returns true if map M is empty, and false otherwise.
Examples
rascal>import Map;
ok
rascal>isEmpty(());
bool: true
rascal>isEmpty(("apple": 1, "pear": 2, "orange": 3));
bool: false
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.