MCPcopy Create free account
hub / github.com/comaps/comaps / unique

Function unique

tools/python/maps_generator/utils/algo.py:10–13  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

8
9
10def unique(s):
11 seen = set()
12 seen_add = seen.add
13 return [x for x in s if not (x in seen or seen_add(x))]
14
15
16def parse_timedelta(s):

Callers 15

PreprocessElementFunction · 0.85
ReadFeaturesFunction · 0.85
SortFunction · 0.85
UNIT_TESTFunction · 0.85
SimplifyLevelMethod · 0.85
UniqueMethod · 0.85
NormalizeMethod · 0.85
GetHouseForNameMethod · 0.85
MergeDictionariesFunction · 0.85

Calls

no outgoing calls

Tested by 5

SortFunction · 0.68
UNIT_TESTFunction · 0.68
TestEqualsByFunction · 0.68
TestRollingHasherFunction · 0.68
UNIT_TESTFunction · 0.68