r/functionalprogramming • • 2d ago

JavaScript I kept writing Hindley-Milner signatures in my comments, so I made them type-check

Thumbnail
dev.to
4 Upvotes

r/functionalprogramming • • Jul 01 '22

JavaScript The best resource to learn functional programming in JavaScript

15 Upvotes

Hi folks,

As the title suggest I'm looking for resources to learn functional programming in JavaScript. All suggestions are welcome - books, courses, etc.

r/functionalprogramming • • Jul 31 '19

JavaScript Recommendations for JavaScript functional programming

22 Upvotes

As the title states, what do you recommend? I am fairly new to programming overall, hence the JavaScript. I have also come across Ramda.js functional programming library. Any thoughts for a newbie?

r/functionalprogramming • • Jun 26 '22

JavaScript Really good explanation of a monad in under 100 seconds

Thumbnail
youtube.com
125 Upvotes

r/functionalprogramming • • Oct 13 '20

JavaScript How do I write this JS function in a immutable way ?

3 Upvotes

How do I write this javascript function in a immutable fashion?
I mean without pushing values into a array, is there a way to do it all in one function?

is there a function for this in lodash or ramda ? how would you do it ?

getTexts: async (page, handlers) => {
		let texts = [];

		handlers.map(async (handler) => {
			const text = await page.$eval(handler, (e) => e.innerText);
			texts.push(text);
		});

		return texts;
	},

r/functionalprogramming • • Jun 22 '21

JavaScript Imperative vs Declarative programming in JavaScript

23 Upvotes

Hi everyone, I have tried describing the difference between imperative and declarative programming. It's not the first time that I have tried and I am hoping that I am able to communicate it in a clear way but I would appreciate the feedback of the community.

Please have a look at

the Medium post: https://medium.com/weekly-webtips/imperative-vs-declarative-programming-in-javascript-25511b90cdb7

and the YouTube video: https://www.youtube.com/watch?v=oFXOLbAX4Pw

r/functionalprogramming • • Mar 13 '24

JavaScript I have written a Pattern Matching library in Javascript

6 Upvotes

match-when-value

A first version.
Please have a look and share your thoughts/ideas.
Thanks!