Post History
JavaScript, 25 bytes The function is called with f(g)(n), where g is a function. g=>h=n=>n-1?g(h(n-1),n):1 Try it online!
Answer
#2: Post edited
- # JavaScript, 25 bytes
- g=>h=n=>n-1?g(h(n-1),n):1
- [Try it online!](https://tio.run/##dY5BCsIwEEX3OcmMtmIEN8LEmwihadNKnJS2SnL6GATronH1mTe8z7/rl56baRiXmr1pU0fJkuqJSXEtrxZ6yIkV40UmbQxBqCKSCvsoHk@3DKOLK9tFEfy0nrcoGs@zd@3BeQsdZB9BIpbweYO/9SXl99t6eUJJ@eBTGf8rOSKmNw)
- # JavaScript, 25 bytes
- The function is called with `f(g)(n)`, where `g` is a function.
- g=>h=n=>n-1?g(h(n-1),n):1
- [Try it online!](https://tio.run/##dY5BCsIwEEX3OcmMtmIEN8LEmwihadNKnJS2SnL6GATronH1mTe8z7/rl56baRiXmr1pU0fJkuqJSXEtrxZ6yIkV40UmbQxBqCKSCvsoHk@3DKOLK9tFEfy0nrcoGs@zd@3BeQsdZB9BIpbweYO/9SXl99t6eUJJ@eBTGf8rOSKmNw)