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

Method __map

funct/Array.py:1122–1126  ·  view source on GitHub ↗
(self, f, e)

Source from the content-addressed store, hash-verified

1120 return self
1121
1122 def __map(self, f, e):
1123 if isinstance(e, Iterable):
1124 self.__validate_seq(e)
1125 return map(f, self, e)
1126 return map(f, self, itertools.repeat(e))
1127
1128 def __operate(self, op, e, inplace):
1129 self.__validate_bool_arg(inplace, "inplace")

Callers 1

__operateMethod · 0.95

Calls 1

__validate_seqMethod · 0.95

Tested by

no test coverage detected