A math question(s)

Two lists/vectors of integers: x, y. Find a pair x[i], y[j], where abs(x[i]-y[j])<threshold. What’s the name of that function?