MCPcopy Create free account
hub / github.com/ActiveState/code / map

Method map

recipes/Python/498272_Rich_iterator_wrapper/recipe-498272.py:42–42  ·  view source on GitHub ↗
(self, func)

Source from the content-addressed store, hash-verified

40
41 def enumerate(self): return Iter(enumerate(self._it))
42 def map(self, func): return Iter(imap(func,self))
43 def zip(self, *others): return Iter(izip(self._it, *others))
44 def filter(self, predicate): return Iter(ifilter(predicate,self._it))
45 def filterfalse(self, predicate): return Iter(ifilterfalse(predicate,self._it))

Callers 1

recipe-498272.pyFile · 0.45

Calls 1

IterClass · 0.85

Tested by

no test coverage detected