pico-engine icon indicating copy to clipboard operation
pico-engine copied to clipboard

The set intersection operator is not working properly

Open b1conrad opened this issue 2 years ago • 0 comments

Intersection operation appears to be directional when dealing with unbalanced arrays. e.g.

A = ["tag1","tag2","tag3","tag4","tag5"]
B = ["tag3", "tag5"]
A.intersection(B) // ["tag3", "tag5]
B.intersection(A) // []

as reported by Josh Goodman

b1conrad avatar Apr 25 '22 13:04 b1conrad