25

从一道面试题认识函数柯里化

 5 years ago
source link: https://juejin.im/post/5b8350246fb9a019c372d26d
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.
最近在整理面试资源的时候,发现一道有意思的题目,所以就记录下来。 题目 如何实现 multi(2)(3)(4)=24? 首先来分析下这道题,实现一个 multi 函数并依次传入参数执行,得到最终的结果。通过题目很容易得到的结论是,把传入的参数相乘就能够得到需要

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK