javascript - What is the purpose of analyzing this code?
ringa_lee
ringa_lee 2017-05-19 10:07:29
0
1
315
((y) => 
  (f => f(100))
    (y(self => 
      n => n < 0 ? 0 : n + self(n-1))))
  (g => 
    (f=>f(f))(
        self => 
            g( (...args)=>self(self)(...args) ) 
    ))
ringa_lee
ringa_lee

ringa_lee

reply all(1)
阿神

I didn’t look carefully. To be honest, I feel that there are too many arrow functions nested, which affects the readability. Of course, it may be because of my low level

At a casual glance, it should be using recursion to simulate a loop. . If you think I'm wrong, boss. . Please point it out and I will change it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!