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