Make unique() immutable and return filtered copy.