isEmpty

Check if the given collection (map, list or set) empty.

Parameters:

No. Type Comments
1 map< K, V >, list< T > or set< T > The container to check if is empty

Returns: boolean - true if the collection is empty, false otherwise.

Usages:

  • isEmpty( v:list<T> ) : boolean
  • isEmpty( v:set<T> ) : boolean
  • isEmpty( v:map<K, V> ) : boolean