Thinking in Ramda: Wrap-Up

时间:2021-09-02 06:05:14   收藏:0   阅读:12

Thinking in Ramda: Wrap-Up

This post completes a series about functional programming called Thinking in Ramda.

Over the past eight posts, we’ve been talking about the Ramda JavaScript library that provides functions for working with JavaScript in a functional, declarative, and immutable way.

During the series, we learned that Ramda has some underlying principles that drive its API:

These two principles allow us to write very clear functional code that combines basic building blocks into more powerful operations.

Summary

For reference, here’s a quick summary of the series.

What Next?

We didn’t cover every part of Ramda in this series. In particular, we didn’t talk about functions for working with strings, and we didn’t talk about more advanced concepts such as transducers.

To learn more about what Ramda can do, I recommend perusing the documentation. There’s a wealth of information there. All of the functions are grouped by the type of data they work with, though there is some overlap. For example, several of the array functions will also work on strings, and map works on both arrays and objects.

If you’re interested in more advanced functional topics, here are some places you can go:

原文:https://www.cnblogs.com/cuishengli/p/15210705.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!