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

Function intersect1

dd.py:31–35  ·  view source on GitHub ↗
(set1: set[Any], set2: set[Any])

Source from the content-addressed store, hash-verified

29
30
31def intersect1(set1: set[Any], set2: set[Any]) -> Any:
32 for x in set1:
33 if x in set2:
34 return x
35 return None
36
37
38def diff_point(l: gm.Line, a: gm.Point) -> gm.Point:

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected