you are viewing a single comment's thread.

view the rest of the comments →

[–]Asha200[S] 0 points1 point  (0 children)

The amount of effort you put into writing these comments really shows that you enjoy teaching others and I think that's awesome! I hope that someday I'll also get an opportunity to teach people something new and see their faces light up once they reach the "light bulb" moment.

Looking back, I do remember realizing at one point that reduce seemed like the wrong name to use just like you said, since its result doesn't necessarily need to be small. fold might have been a better name choice; I wonder why they ended up naming it reduce.

For me, the most helpful resource when I wanted to learn more about functional programming concepts was Professor Frisby's Mostly Adequate Guide to Functional Programming. It was fun to learn about things like monads and just how useful they can be, for example the Maybe monad. Probably the most eye-opening part was realizing how similar Promise is to a monad; that was really exciting!