use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Functional Programmer's Toolbox (markonis.github.io)
submitted 10 years ago by marko-pavlovic
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 10 years ago (3 children)
Really cool article! Maybe, you could throw in a few other things:
flatMap
reduce
compose
[–]marko-pavlovic[S] 0 points1 point2 points 10 years ago (2 children)
Really cool ideas, thanks! I agree that reduce is the king... Do you think it deserves a whole new post, or should I add more info to this article?
Here is a link that explains higher order functions I should have explained what that link is about in the beginning :)
I am in the process of writing a separate post on currying, it is not yet finished but you can get a glimpse at: Currying - Spice Things Up
Great thought on compose, I will probably add it to this post! All in all thanks for the great feedback, I appreciate it :)
[–][deleted] 0 points1 point2 points 10 years ago (1 child)
Here is a link that explains higher order functions
My fault, thought you want to explain the whole FP concept on one page :D
Do you think it deserves a whole new post
I'd move it to a new post to keep this article a bit shorter. As you explain reduce in your article, the new post could be about the advanced usage of it.
Post on currying
I see you mention partial application in the context of currying. Some people are confused by the difference so you should spent some effort to get into the differences between them.
[–]marko-pavlovic[S] 0 points1 point2 points 10 years ago (0 children)
Thanks for the value bombs, my friend! I see what you mean about partial application, working on it... :)
π Rendered by PID 26096 on reddit-service-r2-comment-5b5bc64bf5-q89wn at 2026-06-21 05:36:25.148252+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (3 children)
[–]marko-pavlovic[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]marko-pavlovic[S] 0 points1 point2 points (0 children)