replace old_iter::repeat with the Times trait