Implement `unique` for `repeat`