mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
*** empty log message ***
This commit is contained in:
parent
67b0bd75b9
commit
e757277abd
@ -101,3 +101,15 @@ def doc(obj):
|
|||||||
(isinstance(obj, types.FunctionType)):
|
(isinstance(obj, types.FunctionType)):
|
||||||
print obj.__doc__
|
print obj.__doc__
|
||||||
|
|
||||||
|
def intersection(a, b):
|
||||||
|
"""
|
||||||
|
intersection(list, list):
|
||||||
|
"""
|
||||||
|
c = a + b
|
||||||
|
d = []
|
||||||
|
for i in c:
|
||||||
|
if (i in a) and (i in b):
|
||||||
|
# make it unique, like a set
|
||||||
|
if (i not in d):
|
||||||
|
d.append(i)
|
||||||
|
return d
|
||||||
|
Loading…
x
Reference in New Issue
Block a user