Libraryless. Click here for Pure Java version (8115L/46K).
1 | srecord ackermann_int_vstackComputable(int a, int b) implements VStack.Computable<Int> { |
2 | public void step(VStack stack, O subComputationResult) { |
3 | if (subComputationResult == null) { |
4 | if (a == 0) |
5 | stack.return(b+1); |
6 | else if (b == 0) { |
7 | a--; |
8 | b = 1; |
9 | } else |
10 | stack.push(new ackermann_int_vstackComputable(a, b-1)); |
11 | } else { |
12 | a--; |
13 | b = subComputationResult/Int; |
14 | } |
15 | } |
16 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030386 |
Snippet name: | ackermann_int_vstackComputable |
Eternal ID of this version: | #1030386/4 |
Text MD5: | 37e9e00929f3e029c28342cc08acf789 |
Transpilation MD5: | ea26f112cbd7721e81e3a2b18ce70711 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-05-01 23:06:48 |
Source code size: | 449 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 240 / 497 |
Version history: | 3 change(s) |
Referenced in: | [show references] |