beautypg.com

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

Page 50

background image

Chapter 11: Primitives

File-based Decoding User Manual

44

LeCroy Corporation

11.3 List Manipulation Primitives

RemoveAt()

RemoveAt( 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

Parameter

Meaning

Default

Value

Comments

list_object list

index integer