Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/comaps/comaps
/ each_to_each
Function
each_to_each
tools/python/road_runner.py:30–35 ·
view source on GitHub ↗
(points)
Source
from the content-addressed store, hash-verified
28
return
[]
29
30
def
each_to_each(points):
31
result = []
32
for
i in range(len(points)):
33
for
j in range(len(points) - i - 1):
34
result.append((points[i], points[j + i + 1]))
35
return
result
36
37
def
load_towns(path):
38
result = []
Callers
1
road_runner.py
File · 0.85
Calls
1
append
Method · 0.45
Tested by
no test coverage detected