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

Method equal

funct/Array.py:406–409  ·  view source on GitHub ↗

Returns true this Array and given sequence have the same elements.

(self, b)

Source from the content-addressed store, hash-verified

404 return len(set(self))
405
406 def equal(self, b):
407 """ Returns true this Array and given sequence have the same elements. """
408 self.__validate_seq(b)
409 return all(self.eq(b))
410
411 def remove(self, b, inplace=False):
412 """ Removes first occurence(s) of the value(s). """

Callers 1

testMethod · 0.95

Calls 2

__validate_seqMethod · 0.95
eqMethod · 0.95

Tested by 1

testMethod · 0.76