Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 

CPO List Class

Initial Release - version 1.0.0.1

Updated Release beta - version 1.0.0.2

 

Methods:

Init - takes name of list and either items or no items and creates a new list target

append (x) - adds an item (x) to end of list

extend(L) - adds a complete list (L) to end of list

insert(i, x) - adds an element (x) at list location (i)

remove (x) - removes the first value in list that equals (x)

pop(i) - removes that item at the position (i) given. If no (i) , then removes last item in list

index (x) - returns the index of the first (x) value

count(x) - returns the number of times (x) appears in list

destroy - destroys list object

get_item(x) - returns the list item at (x)

 

See blog for more info.

31
Views
0
Helpful
0
Comments