Ramda JS Tutorial – Part 36 (empty + Monoid + Semigroup)

preview_player
Показать описание
What is a Monoid? And how do you get its identity element?

Exploring all the functions of the JavaScript library Ramda JS and learning functional programming along the way.

⭐️ Support the channel on Patreon:

👾 In this video:
R.empty
Monoid
Semigroup
empty
concat

🖥 Full playlist:
Рекомендации по теме
Комментарии
Автор

Hey Christopher. I believe at 21:00, as part of the "isArguments(x)", ramda just samples the value of "arguments" of an empty function call, which makes sense, since the "empty" function is supposed to return the empty equivalent of the data that's being passed in. So if you pass in arbitrary arguments, then an empty argument list is what corresponds to that. Maybe that makes sense.

tamaspal
Автор

string is a list of chars with concat and length ... just like array, you can do Array.from("string")

zeocamo
Автор

Great video Christopher. As all your Ramda stuff! Will you produce more on those FP stuff like Fantasy types?

dalailama
Автор

you can do Set(), null, 2)) to see the inner of a object

zeocamo
Автор

remember to make pure function and Immutable data in FP :)

zeocamo
Автор

you can't that why ramda get (function() { return arguments}()) in the docs you was reading

zeocamo
Автор

you should look at typescript.... maybe be good for you

zeocamo
Автор

interesting topic... but why does the video has to be over an hour long ? maybe try to trim it to 5-10 minutes for each topic (empty, monoid, semigroup) .. because it does not look like people have patience to watch it all.

KostiantynVesna