Picolab / pico-engine

An implementation of the pico-engine hosted on node.js
http://picolabs.io/
MIT License
43 stars 8 forks source link

The set intersection operator is not working properly #599

Open b1conrad opened 2 years ago

b1conrad commented 2 years ago

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