Time and again I have found nested loops for determining whether any elements of A are missing from B.