CSet:Copy CSet:Count

CSet:Append


The Append method appends a member to the end of the set.

Syntax

CSet:Append( member )

Remarks

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.

Example

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

Related Topics

CSet, Insert