clear
Removes all things from a set.
This function generates a change
Function
set.clear()
Arguments
None
Return value
Returns nil
.
Example
This code adds things to a set:
a = {item: 'a'};
b = {item: 'b'};
s = set(a, b);
s.clear();
s; // the set is empty
Return value in JSON format