intersect(a, b) should work for that. It also can take a variable number of arrays/iterables. There’s also ∩ (type \cap<tab> at the REPL), which is the synonym for intersect if you like Unicode.
— Mike
intersect(a, b) should work for that. It also can take a variable number of arrays/iterables. There’s also ∩ (type \cap<tab> at the REPL), which is the synonym for intersect if you like Unicode.
— Mike