![]() |
|
Navigation |
Synopsis Test whether a list is empty.
Function
bool isEmpty(list[&T] lst)
Usage
import List;
Description Returns
true when a list is empty and false otherwise.
Examples
rascal>import List; ok rascal>isEmpty([]); bool: true rascal>isEmpty([1, 2, 3]); bool: false Questions
Question [1].
![]() ![]()
Question [2].
![]() ![]() ![]() |