Uranium
Application Framework
UM.Signal.WeakImmutablePairList Class Reference

A variation of WeakImmutableList which holds a pair of values using weak refernces. More...

Inherits Generic, T, U, and Iterable.

Public Member Functions

def __init__ (self)
 
"WeakImmutablePairList[T,U]" append (self, T left_item, U right_item)
 Append an item and return a new list. More...
 
"WeakImmutablePairList[T,U]" remove (self, T left_item, U right_item)
 Remove an item and return a list. More...
 
def __iter__ (self)
 

Detailed Description

A variation of WeakImmutableList which holds a pair of values using weak refernces.

Member Function Documentation

◆ append()

"WeakImmutablePairList[T,U]" UM.Signal.WeakImmutablePairList.append (   self,
left_item,
right_item 
)

Append an item and return a new list.

Parameters
itemthe item to append
Returns
a new list

◆ remove()

"WeakImmutablePairList[T,U]" UM.Signal.WeakImmutablePairList.remove (   self,
left_item,
right_item 
)

Remove an item and return a list.

Note that unlike the normal Python list.remove() method, this ones doesn't throw a ValueError if the item isn't in the list.

Parameters
itemitem to remove
Returns
a list which does not have the item.

The documentation for this class was generated from the following file: