Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
10
def
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
16
def
parse_timedelta(s):
Callers
15
get_countries_set_from_line
Function · 0.90
RemoveDuplicatingPointImpl
Method · 0.85
PreprocessElement
Function · 0.85
ReadFeatures
Function · 0.85
Sort
Function · 0.85
UNIT_TEST
Function · 0.85
SimplifyLevel
Method · 0.85
Unique
Method · 0.85
Normalize
Method · 0.85
GetLocalizedRegionAddress
Method · 0.85
GetHouseForName
Method · 0.85
MergeDictionaries
Function · 0.85
Calls
no outgoing calls
Tested by
5
Sort
Function · 0.68
UNIT_TEST
Function · 0.68
TestEqualsBy
Function · 0.68
TestRollingHasher
Function · 0.68
UNIT_TEST
Function · 0.68