I have a problem to find common elements in two arrays and that\'s of different size.
Take , Array A1 of size n and Array A2 o
A1
n
A2
In APL:
∪A1∩A2
example:
A1←9, 4, 6, 2, 10, 10 A1 9 4 6 2 10 10 A2←14, 3, 6, 9, 10, 15, 17, 9 A2 14 3 6 9 10 15 17 9 A1∩A2 9 6 10 10 ∪A1∩A2 9 6 10