Libraryless. Click here for Pure Java version (8115L/46K).
srecord ackermann_int_vstackComputable(int a, int b) implements VStack.Computable<Int> { public void step(VStack stack, O subComputationResult) { if (subComputationResult == null) { if (a == 0) stack.return(b+1); else if (b == 0) { a--; b = 1; } else stack.push(new ackermann_int_vstackComputable(a, b-1)); } else { a--; b = subComputationResult/Int; } } }
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: | 458 / 764 | 
| Version history: | 3 change(s) | 
| Referenced in: | [show references] |