31

前端之函数柯里化Currying

 5 years ago
source link: https://juejin.im/post/5c243574518825741e7c33ed
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
什么是柯里化 在计算机科学中,柯里化(Currying)是一种技术(技巧),能够把本来接受 n 个参数的函数A,转换成只接收一个参数的函数B(B中的唯一参数,就是A的多个参数中的 第一个 参数)。 然后新函数B返回的,还是一个函数,记为C(注意原A中返回的不一

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK