CSet:Append
The Append method appends a member to the end of the set.
CSet:Append( member ) |
member is the object to append after the end of the set.
This method adds 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 fragment appends strings to a CSet:
S = CSet:new() |
-- create a CSet |
S:Append("First") |
-- add a string to the set |
S:Append("Second") |
-- add a string to the set |
S:Append("Third") |
-- add a string to the set |
Printf("N= %d", S:Count()) -- Result: N = 3 |