MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / perm2

Function perm2

ar.py:168–171  ·  view source on GitHub ↗
(elems: list[Any])

Source from the content-addressed store, hash-verified

166
167
168def perm2(elems: list[Any]) -> Generator[tuple[Any, Any], None, None]:
169 for e1, e2 in comb2(elems):
170 yield e1, e2
171 yield e2, e1
172
173
174def chain2(elems: list[Any]) -> Generator[tuple[Any, Any], None, None]:

Callers 3

pairsMethod · 0.70
pairsMethod · 0.70
get_all_eqs_and_whyMethod · 0.70

Calls 1

comb2Function · 0.70

Tested by

no test coverage detected