As the Accumulate method is supposed to be lazy, the mentors should advise against solutions that don't use the yield keyword.
I added a statement that might help mentors guide students towards a solution that uses the yield keyword.
I left the comment about the yield keyword in the Common suggestions section, as it applies in the case where a student would have manually written a custom iterator.
As the Accumulate method is supposed to be lazy, the mentors should advise against solutions that don't use the yield keyword.
I added a statement that might help mentors guide students towards a solution that uses the
yield
keyword.I left the comment about the
yield
keyword in the Common suggestions section, as it applies in the case where a student would have manually written a custom iterator.This PR follow this discussion on the forum with @ErikSchierboom