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

Method remove

funct/Array.py:411–419  ·  view source on GitHub ↗

Removes first occurence(s) of the value(s).

(self, b, inplace=False)

Source from the content-addressed store, hash-verified

409 return all(self.eq(b))
410
411 def remove(self, b, inplace=False):
412 """ Removes first occurence(s) of the value(s). """
413 a = self if inplace else self.copy()
414 if isinstance(b, Iterable):
415 for i in b:
416 super(Array, a).remove(i)
417 else:
418 super(Array, a).remove(b)
419 return a
420
421 def remove_(self, b):
422 """ Removes first occurence(s) of the value(s) in-place. """

Callers 3

testMethod · 0.95
remove_Method · 0.80
test_errsMethod · 0.80

Calls 1

copyMethod · 0.95

Tested by 2

testMethod · 0.76
test_errsMethod · 0.64