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

Method insertList

recipes/Python/577898_23_Tree/recipe-577898.py:449–452  ·  view source on GitHub ↗

Insert a list of values into a tree

(self, xs)

Source from the content-addressed store, hash-verified

447 return self
448
449 def insertList(self, xs):
450 """ Insert a list of values into a tree """
451 if xs is not None and type(xs) is list:
452 for item in xs: self.insertValue(item)
453
454 def removeValue(self, a):
455 """ Removes a value from the tree and keeps it balanced """

Callers

nothing calls this directly

Calls 1

insertValueMethod · 0.95

Tested by

no test coverage detected