neurolang.utils.orderedset module¶
- class neurolang.utils.orderedset.OrderedSet(iterable=None)¶
Bases:
MutableSet,SequenceMethods
add(value)Add an element.
clear()This is slow (creates N new iterators!) but effective.
count(value)discard(value)Remove an element.
index(value, [start, [stop]])Raises ValueError if the value is not present.
isdisjoint(other)Return True if two sets have a null intersection.
pop()Return the popped value.
remove(value)Remove an element.
copy
issubset
issuperset
replace
- add(value)¶
Add an element.
- copy()¶
- discard(value)¶
Remove an element. Do not raise an exception if absent.
- index(value[, start[, stop]]) integer -- return first index of value.¶
Raises ValueError if the value is not present.
Supporting start and stop arguments is optional, but recommended.
- issubset(other)¶
- issuperset(other)¶
- replace(src, dst)¶