MCPcopy Create free account
hub / github.com/ActiveState/code / extendleft

Method extendleft

recipes/Python/528878_Ordered_Set/recipe-528878.py:93–96  ·  view source on GitHub ↗

Extend the left side of the OrderedSet with elements from the iterable.

(self, iterable)

Source from the content-addressed store, hash-verified

91 self.append(element)
92
93 def extendleft(self, iterable):
94 """Extend the left side of the OrderedSet with elements from the iterable."""
95 for element in iterable:
96 self.appendleft(element)
97
98 def insertleft(self, poselement, element):
99 """Inserts element immediately left of poselement's position."""

Callers 1

nested_enumerateFunction · 0.45

Calls 1

appendleftMethod · 0.95

Tested by

no test coverage detected