1
0
Fork
You've already forked primitive_recursion
0
No description
  • Python 98.4%
  • Nix 1.6%
2024年05月28日 22:25:18 +02:00
.vscode Add str, repr, eq 2023年11月20日 14:27:36 +01:00
.envrc Initial commit 2023年11月12日 21:36:17 +01:00
.gitignore Initial commit 2023年11月12日 21:36:17 +01:00
flake.lock flake.lock: Update 2024年05月28日 17:25:25 +02:00
flake.nix Add sqrt & remove unneeded imports 2023年11月17日 22:49:52 +01:00
LICENSE Add LICENSE 2024年03月08日 00:31:10 +01:00
mypy.ini Initial commit 2023年11月12日 21:36:17 +01:00
primitive_recursion.py Some improvements 2024年05月28日 22:25:18 +02:00
README.md Add README 2023年11月12日 21:44:40 +01:00

Primitive recursion in Python

This is a simple nonrecursive implementation of primitive recursive functions in Python. Most information about this can be found in the comments and docstrings of the Python source. The file is typed for mypy but in at least mypy 1.5.1 there is a bug which means that supposedly, PrimitiveRecursion.run has a missing return statement (it doesn’t).