Found it! My implementation is not lazy, so the sequence is realized, which does not happen for the other solution.
Are there things I can do to my solution to make it lazy?
Found it! My implementation is not lazy, so the sequence is realized, which does not happen for the other solution.
Are there things I can do to my solution to make it lazy?