CSet:RemoveFirst
The RemoveFirst method removes the member at the head of the list.
member = CSet:RemoveFirst() |
member is a reference to the member that was removed.
On success, this method returns the removed member.
On failure, nil is returned.
Removing the list member decreases the list length by 1 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 first member |
|
-- result: count=9
|
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.