clear()
Table of Contents
Overview
The clear() function takes a mapVariable as an argument, and removes all key-values pairs from the map.
Syntax
<mapVariable>.clear();
Parameter | Description | Data type |
---|---|---|
<mapVariable> | The map variable whose key-value pairs will be removed. | KEY-VALUE |
Examples
mapVar = {"Product" : "Creator", "Version" : 5};
mapVar.clear(); // empties the given map
mapVar.clear(); // empties the given map