Adding an intermediate variable inside the `while` loop while still using `islice` wouldn't drop much in the way of performance, but would still allow using a clearer end condition.