Switch to the repeat iterator from the std library