MCPcopy 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
174def 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
184def first(it):

Callers

nothing calls this directly

Calls 3

setFunction · 0.50
appendMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected