flatland.utils.ordered_set module¶

class flatland.utils.ordered_set.OrderedSet[source]¶

Bases: collections.OrderedDict, collections.abc.MutableSet

add(elem)[source]¶

Add an element.

difference¶
difference_update¶
discard(elem)[source]¶

Remove an element. Do not raise an exception if absent.

intersection¶
intersection_update¶
issubset¶
issuperset¶
symmetric_difference¶
symmetric_difference_update¶
union¶
update([E, ]**F) → None. Update D from dict/iterable E and F.[source]¶

If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]