Quote: Original post by Muhammad Haggag
Is there another popular name for 'accumulate'?
fold and reduce are typical names for that function.
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Quote: Original post by Muhammad Haggag
Is there another popular name for 'accumulate'?
Quote: Original post by Muhammad Haggag
Exercise 2.35 is about writing a count-leaves procedure as an accumulation operation. I wrote a recursive solution as follows:
*** Source Snippet Removed ***
Is it possible to get away with a simpler solution? (Not that this one is complex--it isn't. Just wondering)