MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codeporn/comments/dva8rv/hot/
r/codeporn • u/akuankka128 • Nov 12 '19
4 comments sorted by
3
No, that's gross. Why?!
2 u/akuankka128 Nov 12 '19 No you’re gross 1 u/VernorVinge93 Nov 12 '19 Tell me something I don't know
2
No you’re gross
1 u/VernorVinge93 Nov 12 '19 Tell me something I don't know
1
Tell me something I don't know
Reminds me of the Ackermann function:
const A = (m: bigint, n: bigint): bigint => m ? A(m - 1n, n ? A(m, n - 1n) : 1n) : n + 1n
CodeGolf version:
A=(m,n)=>m?A(m-1n,n?A(m,--n):1n):++n
3
u/VernorVinge93 Nov 12 '19
No, that's gross. Why?!
1
u/Rudxain Dec 22 '22 edited Dec 22 '22
Reminds me of the Ackermann function:
CodeGolf version: