I've been hunting for what I would hope would be a std function, but can't find it. I'm looking for function or method that gives vector overlaps. So, assuming the two vectors:
let my_vector1 = ["snake", "bird", "fish", "cat", "dog"];
and
let my_vector2 = ["tiger", "cat", "bear", "dog", "coyote"];
I'm searching for the indexes over the overlaps.
I'd assume a function like...
let values1 = my_vector1.overlaps(my_vector2);
// values1 = [3, 4]
let values2 = my_vector2.overlaps(my_vector1);
// values2 = [1, 3]
I'd expect for something as commonplace as getting the index of an inner-join of vectors would be simple and standard as a common data flow. However, the join that does exist for vectors is about turning the vector into a string, and honestly I'm at a loss, and my own functions I've attempted are big, bulky, and just don't work well.
What would be the idiomatic way to do this?

Veclike this, but if those get "large", use a temporaryHashSet<&T>.