Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catboost/catboost
/ stable_uniq
Function
stable_uniq
library/python/func/__init__.py:174–181 ·
view source on GitHub ↗
(it)
Source
from the content-addressed store, hash-verified
172
173
174
def
stable_uniq(it):
175
seen = set()
176
res = []
177
for
e in it:
178
if
e not in seen:
179
res.append(e)
180
seen.add(e)
181
return
res
182
183
184
def
first(it):
Callers
nothing calls this directly
Calls
3
set
Function · 0.50
append
Method · 0.45
add
Method · 0.45
Tested by
no test coverage detected