js 柯里化

This article is about the mathematical technique. For the cooking process of this name, see Curry. For the leather finishing process, see Currier.
In mathematics and computer science, currying is the technique of translating the evaluation of a function that takes multiple arguments (or a tuple of arguments) into evaluating a sequence of functions, each with a single argument. Currying is related to, but not the same as, partial application.

阅读全文

从函数式编程分析redux与vuex

之前在研究redux时候就接触锅函数式编程,但一直对于概念及其用法一知半截。终于时隔半年后抽个时间来总结下。
在开始之前先整理下需知的知识点:

  1. JS中的柯里化(currying)
  2. 编程语言的主要类型

阅读全文

创建你的博客

阅读全文