flatland.utils.ordered_set module

class flatland.utils.ordered_set.OrderedSet[source]

Bases: collections.OrderedDict, collections.abc.MutableSet

add(self, elem)[source]

Add an element.

difference
difference_update
discard(self, elem)[source]

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

intersection
intersection_update
issubset
issuperset
symmetric_difference
symmetric_difference_update
union
update(self, *args, **kwargs)[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]