MCPcopy Create free account
hub / github.com/Lauriat/funct / remove_

Method remove_

funct/Array.py:421–429  ·  view source on GitHub ↗

Removes first occurence(s) of the value(s) in-place.

(self, b)

Source from the content-addressed store, hash-verified

419 return a
420
421 def remove_(self, b):
422 """ Removes first occurence(s) of the value(s) in-place. """
423 warn()
424 if isinstance(b, Iterable):
425 for i in b:
426 super().remove(i)
427 else:
428 super().remove(b)
429 return self
430
431 def removeByIndex(self, b, inplace=False):
432 """ Removes the value at specified index or indices. """

Callers 1

testMethod · 0.95

Calls 1

removeMethod · 0.80

Tested by 1

testMethod · 0.76