Skip to content

VecDoubleList

Canonical path: NemAll_Python_Utility.VecDoubleList

__contains__

__contains__(value: float) -> bool

Check for a value in the list

Parameters:

  • value (float) –

    Value to check

Returns:

  • bool

    State for value is in the list

__delitem__

__delitem__(value: float)

Delete a list item

Parameters:

  • value (float) –

    Value to delete

__eq__

__eq__(compare_list: VecDoubleList) -> bool

Compare two list

Parameters:

Returns:

  • bool

    Lists are equal state

__getitem__

__getitem__(index: int) -> float

Get a list item

Parameters:

  • index (int) –

    Index of the item

Returns:

  • float

    Value for the index

__init__ overloaded

__init__()

Initialize

__init__(valueList: list)

Constructor with an initializer list

Parameters:

  • valueList (list) –

    Value list

__iter__

__iter__() -> Iterator

List iterator

Returns:

  • Iterator

    List iterator

__len__

__len__() -> int

Get the list length

Returns:

  • int

    Length of the list

__repr__

__repr__() -> str

Create a string from the values

Returns:

  • str

    String

__setitem__

__setitem__(index: int | slice, value: float)

Set a list item

Parameters:

  • index (int | slice) –

    Index of the item

  • value (float) –

    Value to item

append

append(value: float)

Append a list item

Parameters:

  • value (float) –

    Value to append

extend

extend(iterable: VecDoubleList)

Add the items from an iterable to the end of the list

Parameters:

Placeholder