def merge_lists(x, y):
    """
    Merge ``y`` list items in list ``x`` avoiding duplicate entries.
    Return the updated ``x``.
    """
    seen = set(x)
    new = (i for i in y if i not in seen)
    x.extend(new)
    return x