beautypg.com

3 list manipulation primitives – Teledyne LeCroy Protocol Analyzers File-Based Decoding User Manual User Manual

Page 49

background image

File-based Decoding User Manual

Chapter 11: Primitives

LeCroy Corporation

43

11.3 List Manipulation Primitives

RemoveAt()

RemoveAt( list, index integer> )

Parameter

Meaning

Default

Value

Comments

list_object list

index integer

Support
Supported by all LeCroy analyzers.

Return value
Removed element if the specified index is less than or equal to the list upper bound,
otherwise null value is returned.

Comments
This function removes an element in a list at a given index.

Example

list = [0, 1, 2, 3]; 
list += 4;
list += 5; 
SetAt( list, 8, 15, 0xAA ); # now list = [ 0, 1, 2, 3, 4, 5,
0xAA, 0xAA, 15];
removed_Item = RemoveAt( list, 6 );
removed_Item = RemoveAt( list, 6 ); # now list = [ 0, 1, 2, 3,
4, 5, 15];
# removed_Item = 0xAA