Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
groupbysorted
Function · 0.85
Calls
2
peekkey
Function · 0.85
next
Method · 0.45
Tested by
no test coverage detected