re: Explain REDUCE Like I'm Five VIEW POST

re: Explanation 1 You're on Netflix deciding which movie to watch. You narrow it down to 3 options. You go through each movie and read the summary. Ult...

The first explanation sounds a lot more like filter. You are more passing a function there that is checking if something is true or not. (Like is it interesting) and returning the one that passed.


Ah that's true and good catch. I was thinking more along the lines of determining how long a movie is based on the current time and how long it would keep you up. Ignore explanation 1!! =)


But think about this: you could implement filter using reduce.

code of conduct - report abuse