Exscript.stdlib.list module

Exscript.stdlib.list.get(*args, **kwargs)[source]

Returns a copy of the list item with the given index. It is an error if an item with teh given index does not exist.

Parameters:
  • source (string) – A list of strings.
  • index (string) – A list of strings.
Return type:

string

Returns:

The cleaned up list of strings.

Exscript.stdlib.list.length(*args, **kwargs)[source]

Returns the number of items in the list.

Return type:string
Returns:The model of the remote device.
Exscript.stdlib.list.new(*args, **kwargs)[source]

Returns a new, empty list.

Return type:string
Returns:The model of the remote device.
Exscript.stdlib.list.unique(*args, **kwargs)[source]

Returns a copy of the given list in which all duplicates are removed such that one of each item remains in the list.

Parameters:source (string) – A list of strings.
Return type:string
Returns:The cleaned up list of strings.