CSet:RemoveLast
The RemoveLast method removes the member at the tail of the list.
member = CSet:RemoveLast() where |
member is a reference to the member that was removed. On failure, nil is returned.
Removing a set member decreases the Count by 1 but does not delete the member.
Suppose a CSet exists with name S and that it contains 10 values. The following script removes the value at the head of the list:
|
-- result: count=10 |
|
-- remove the last member |
|
-- result: count=9 |