https://gist.github.com/zck/7d563d3ee1b7baf5bf67558aece6c861
As with your Python solution, set operations were nice. `(set/intersection w1positions w2positions)` helped.