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

Function subiter

recipes/Python/499379_GroupBySorted/recipe-499379.py:109–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107 return keyfunc(iterable.peek())
108
109 def subiter():
110 while True:
111 if peekkey() != currkey:
112 break
113 yield iterable.next()
114
115 while True:
116 currkey = peekkey()

Callers 1

groupbysortedFunction · 0.85

Calls 2

peekkeyFunction · 0.85
nextMethod · 0.45

Tested by

no test coverage detected