for (var u of x) {
    var u1 = fm(u, ++i, x);
    if (!y1.has(u1)) yield u;
  }