- Redux Quick Start Guide
- James Lee Tao Wei Suresh Kumar Mukhiya
- 120字
- 2021-07-02 12:40:29
Compositions
A composition is a very important concept of functional programming; it is how we create a higher-order function by consuming and combining simpler functions.
Let's just use the sum function that we defined previously. We can split the sum function into the following composition:
const sum = a => b => a + b
sum(2)(5)
Any function can be transformed into a composable function via the concept of currying. Explaining these fundamental functional concepts is beyond the scope of this book, and we suggest that you get familiar with functional terms as much as possible, in order to get a full understanding of Redux and React. We will consume a composition function from Redux, called compose, in upcoming chapters.
推薦閱讀
- 樂(lè)學(xué)Web編程:網(wǎng)站制作不神秘
- 64位匯編語(yǔ)言的編程藝術(shù)
- Learning ELK Stack
- FFmpeg入門(mén)詳解:音視頻原理及應(yīng)用
- 大模型RAG實(shí)戰(zhàn):RAG原理、應(yīng)用與系統(tǒng)構(gòu)建
- Building RESTful Python Web Services
- Mastering Git
- CoffeeScript Application Development Cookbook
- Web App Testing Using Knockout.JS
- 零基礎(chǔ)看圖學(xué)ScratchJr:少兒趣味編程(全彩大字版)
- Scala Functional Programming Patterns
- Learning NHibernate 4
- JavaScript編程精解(原書(shū)第3版)
- Roslyn Cookbook
- 現(xiàn)代JavaScript編程:經(jīng)典范例與實(shí)踐技巧