Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Intersection of three arrays

arr1 = [1,2,3,4,5]
arr2 = [1,2,3,4,5,6,7]
arr3 = [1,2]
arr1AndArr2 = list(filter(lambda a: a in arr1, arr2))
res = list(filter(lambda a : a in arr1AndArr2, arr3))
print(res)
 
PREVIOUS NEXT
Tagged: #Intersection #arrays
ADD COMMENT
Topic
Name
3+3 =