CSet:Add
The Add method appends a member to the end of the set.
CSet:Add( member ) where |
member is the object to append after the end of the set.
This method adds (appends) a member at the end of the set. In comparison, the Insert method adds a member prior to an index within the set.
The following script appends some strings to a CSet:
|
-- create a CSet |
|
-- add a string to the set |
|
-- add a string to the set |
|
-- add a string to the set |
-- Result: N = 3 |