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

Method __operate

funct/Array.py:1128–1134  ·  view source on GitHub ↗
(self, op, e, inplace)

Source from the content-addressed store, hash-verified

1126 return map(f, self, itertools.repeat(e))
1127
1128 def __operate(self, op, e, inplace):
1129 self.__validate_bool_arg(inplace, "inplace")
1130 a = self.__map(op, e)
1131 if inplace:
1132 self[:] = a
1133 return self
1134 return Array(a)
1135
1136 def __repr__(self):
1137 return "Array" + "(" + super().__repr__()[1:-1] + ")"

Callers 15

addMethod · 0.95
add_Method · 0.95
subMethod · 0.95
sub_Method · 0.95
mulMethod · 0.95
mul_Method · 0.95
divMethod · 0.95
div_Method · 0.95
powMethod · 0.95
pow_Method · 0.95
modMethod · 0.95
mod_Method · 0.95

Calls 3

__validate_bool_argMethod · 0.95
__mapMethod · 0.95
ArrayClass · 0.85

Tested by

no test coverage detected